diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index edc25ea49..f6f36b68e 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -2196,7 +2196,4 @@ class CommandDispatcher: return window = self._tabbed_browser.window() - if window.isFullScreen(): - window.setWindowState(window.windowState() & ~Qt.WindowFullScreen) - else: - window.setWindowState(window.windowState() | Qt.WindowFullScreen) + window.setWindowState(window.windowState() ^ Qt.WindowFullScreen)