Explorar o código

Add a delay when switching presentationOptions

Tobias Hieta %!s(int64=8) %!d(string=hai) anos
pai
achega
fe063cd091
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/ui/KonvergoWindow.cpp

+ 2 - 2
src/ui/KonvergoWindow.cpp

@@ -391,13 +391,13 @@ void KonvergoWindow::onVisibilityChanged(QWindow::Visibility visibility)
   {
     loadGeometry();
 #ifdef Q_OS_MAC
-    QTimer::singleShot(0, [&] { OSXUtils::SetPresentationOptions(m_osxPresentationOptions); });
+    QTimer::singleShot(3 * 1000, [&] { OSXUtils::SetPresentationOptions(m_osxPresentationOptions); });
 #endif
   }
   else if (visibility == QWindow::FullScreen)
   {
 #ifdef Q_OS_MAC
-    QTimer::singleShot(0, [&] {
+    QTimer::singleShot(3 * 1000, [&] {
       OSXUtils::SetPresentationOptions(m_osxPresentationOptions | OSXUtils::GetPresentationOptionsForFullscreen(!m_webDesktopMode));
     });
 #endif