]> source.dussan.org Git - tigervnc.git/commitdiff
Another fullscreen fix: When the framebuffer size changes, we must not
authorPeter Åstrand <astrand@cendio.se>
Tue, 19 Jul 2011 09:28:39 +0000 (09:28 +0000)
committerPeter Åstrand <astrand@cendio.se>
Tue, 19 Jul 2011 09:28:39 +0000 (09:28 +0000)
call size_range with a limit, when running in fullscreen mode.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4600 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/DesktopWindow.cxx

index 91019516e70578cc5f144f9df1056d3537201656..102e0b1c847ac5ff3207fdaf178199dce93e6a02 100644 (file)
@@ -173,6 +173,9 @@ void DesktopWindow::resizeFramebuffer(int new_w, int new_h)
   repositionViewport();
 
   // Update allowed resize range
+#ifdef HAVE_FLTK_FULLSCREEN
+  if (!fullscreen_active())
+#endif
   size_range(100, 100, new_w, new_h);
 
   // repositionViewport() makes sure the scroll widget notices any changes