|
@@ -428,20 +428,18 @@ void KonvergoWindow::onVisibilityChanged(QWindow::Visibility visibility)
|
|
|
SystemComponent::Get().setCursorVisibility(false);
|
|
|
}
|
|
|
|
|
|
+#ifdef Q_OS_MAC
|
|
|
if (visibility == QWindow::Windowed)
|
|
|
{
|
|
|
-#ifdef Q_OS_MAC
|
|
|
QTimer::singleShot(1 * 1000, [&] { OSXUtils::SetPresentationOptions(m_osxPresentationOptions); });
|
|
|
-#endif
|
|
|
}
|
|
|
else if (visibility == QWindow::FullScreen)
|
|
|
{
|
|
|
-#ifdef Q_OS_MAC
|
|
|
QTimer::singleShot(1 * 1000, [&] {
|
|
|
OSXUtils::SetPresentationOptions(m_osxPresentationOptions | OSXUtils::GetPresentationOptionsForFullscreen(!m_webDesktopMode));
|
|
|
});
|
|
|
-#endif
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
if (visibility == QWindow::Minimized)
|
|
|
InputComponent::Get().cancelAutoRepeat();
|