I need it for testing, though it also might help certain users for now.
@@ -28,6 +28,12 @@
"default": true,
"platforms_excluded": "oe"
},
+ {
+ "value": "minimizeOnDefocus",
+ "default": true,
+ "platforms": [ "windows" ],
+ "hidden": true
+ },
{
"value": "webserverport",
"default": 32433,
@@ -277,7 +277,7 @@ void KonvergoWindow::focusOutEvent(QFocusEvent * ev)
#ifdef Q_OS_WIN32
// Do this to workaround DWM compositor bugs with fullscreened OpenGL applications.
// The compositor will not properly redraw anything when focusing other windows.
- if (visibility() == QWindow::FullScreen)
+ if (visibility() == QWindow::FullScreen && SettingsComponent::Get().value(SETTINGS_SECTION_MAIN, "minimizeOnDefocus").toBool())
showMinimized();
#endif
}