mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +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:
parent
4cb62b73fb
commit
c12e473ab4
@ -788,9 +788,9 @@ void BrowserWindow::toggleFullScreen()
|
||||
}
|
||||
|
||||
if (isFullScreen())
|
||||
showNormal();
|
||||
setWindowState(windowState() & ~Qt::WindowFullScreen);
|
||||
else
|
||||
showFullScreen();
|
||||
setWindowState(windowState() | Qt::WindowFullScreen);
|
||||
}
|
||||
|
||||
void BrowserWindow::enterHtmlFullScreen()
|
||||
|
Loading…
Reference in New Issue
Block a user