Stop forcing fullscreen on Windows when visibility changes. (#94)

This commit is contained in:
Ian Walton 2022-06-26 14:01:12 -04:00
parent b670715a5c
commit 5d18f14bc2

View File

@ -478,20 +478,6 @@ void KonvergoWindow::onVisibilityChanged(QWindow::Visibility visibility)
{
QLOG_DEBUG() << "QWindow visibility set to" << visibility;
#ifdef Q_OS_WIN32
if (visibility == QWindow::Windowed)
{
QScreen* realScreen = findCurrentScreen();
if (realScreen && realScreen->geometry() == geometry())
{
QLOG_WARN() << "winging it!";
setScreen(realScreen);
setVisibility(QWindow::FullScreen);
return;
}
}
#endif
if (visibility == QWindow::Windowed && SettingsComponent::Get().value(SETTINGS_SECTION_MAIN, "forceAlwaysFS").toBool())
{
QLOG_WARN() << "Forcing re-entering fullscreen because of forceAlwaysFS setting!";