1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

Use setWindowState to toggle fullscreen mode

Use setWindowState instead of showNormal() / showFullScreen()
as that may cause issues in some cases.
This commit is contained in:
David Rosca 2016-07-10 17:26:07 +02:00
parent 4cb62b73fb
commit c12e473ab4

View File

@ -788,9 +788,9 @@ void BrowserWindow::toggleFullScreen()
} }
if (isFullScreen()) if (isFullScreen())
showNormal(); setWindowState(windowState() & ~Qt::WindowFullScreen);
else else
showFullScreen(); setWindowState(windowState() | Qt::WindowFullScreen);
} }
void BrowserWindow::enterHtmlFullScreen() void BrowserWindow::enterHtmlFullScreen()