Browse Source

KonvergoWindow: try to force the screen on normal fullscreening as well

For the forceFSScreen option.

STR for testing:
- select forceFSScreen to display 2
- unfullscreen and move window to display 1
- fullscreen again
- Qt will fullscreen on display 1 (should be display 2)
Vincent Lang 8 years ago
parent
commit
1fe6ce8904
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/ui/KonvergoWindow.cpp

+ 7 - 0
src/ui/KonvergoWindow.cpp

@@ -419,6 +419,13 @@ void KonvergoWindow::updateWindowState(bool saveGeo)
       saveGeometry();
 
     setVisibility(QWindow::FullScreen);
+
+    // When fullscreening explicitly, we might have to move the window to a
+    // different screen, as Qt will fullscreen to the current screen.
+    QTimer::singleShot(200, [=]
+    {
+      updateForcedScreen();
+    });
   }
   else
   {