1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36: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())
showNormal();
setWindowState(windowState() & ~Qt::WindowFullScreen);
else
showFullScreen();
setWindowState(windowState() | Qt::WindowFullScreen);
}
void BrowserWindow::enterHtmlFullScreen()