]> source.dussan.org Git - tigervnc.git/commitdiff
Update fullscreen window if changing fullScreenAllMonitors option
authorPeter Åstrand (astrand) <astrand@cendio.se>
Wed, 18 Apr 2018 19:49:41 +0000 (21:49 +0200)
committerPeter Åstrand (astrand) <astrand@cendio.se>
Wed, 2 May 2018 13:51:34 +0000 (15:51 +0200)
vncviewer/DesktopWindow.cxx

index b36f92bfc0389f324fa75d02b21223fa7c1b944e..e86e90e6f6c50f943cd460346c061d6ee31bc3d3 100644 (file)
@@ -762,7 +762,8 @@ void DesktopWindow::fullscreen_on()
     fullscreen_screens(top, bottom, left, right);
   }
 
-  fullscreen();
+  if (!fullscreen_active())
+    fullscreen();
 }
 
 void DesktopWindow::grabKeyboard()
@@ -1186,7 +1187,9 @@ void DesktopWindow::handleOptions(void *data)
   else
     self->ungrabKeyboard();
 
-  if (fullScreen && !self->fullscreen_active())
+  // Call fullscreen_on even if active since it handles
+  // fullScreenAllMonitors
+  if (fullScreen)
     self->fullscreen_on();
   else if (!fullScreen && self->fullscreen_active())
     self->fullscreen_off();