Skip to content

Commit

Permalink
Stop forcing fullscreen on Windows when visibility changes. (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
iwalton3 committed Jun 26, 2022
1 parent b670715 commit 5d18f14
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/ui/KonvergoWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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!";
Expand Down

0 comments on commit 5d18f14

Please sign in to comment.