瀏覽代碼

Add a delay when switching presentationOptions

Tobias Hieta 8 年之前
父節點
當前提交
fe063cd091
共有 1 個文件被更改,包括 2 次插入2 次删除
  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