From c12e473ab40c1c6c168b38d38865a4f875665e18 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sun, 10 Jul 2016 17:26:07 +0200 Subject: [PATCH] Use setWindowState to toggle fullscreen mode Use setWindowState instead of showNormal() / showFullScreen() as that may cause issues in some cases. --- src/lib/app/browserwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/app/browserwindow.cpp b/src/lib/app/browserwindow.cpp index 8405146d6..f863f7062 100644 --- a/src/lib/app/browserwindow.cpp +++ b/src/lib/app/browserwindow.cpp @@ -788,9 +788,9 @@ void BrowserWindow::toggleFullScreen() } if (isFullScreen()) - showNormal(); + setWindowState(windowState() & ~Qt::WindowFullScreen); else - showFullScreen(); + setWindowState(windowState() | Qt::WindowFullScreen); } void BrowserWindow::enterHtmlFullScreen()