From 880b33fff599a8339207881ca871e178d3634106 Mon Sep 17 00:00:00 2001 From: rien333 Date: Fri, 23 Mar 2018 15:19:37 +0100 Subject: [PATCH] Restore correct window visibility after decoration config change --- qutebrowser/mainwindow/mainwindow.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qutebrowser/mainwindow/mainwindow.py b/qutebrowser/mainwindow/mainwindow.py index 796c1f1b9..db96d7c73 100644 --- a/qutebrowser/mainwindow/mainwindow.py +++ b/qutebrowser/mainwindow/mainwindow.py @@ -500,11 +500,13 @@ class MainWindow(QWidget): def _set_decoration(self, hidden): """ Set the visibility of the window decoration via Qt.""" window_flags = Qt.Window + refresh_window = self.isVisible() if hidden: window_flags |= Qt.CustomizeWindowHint | Qt.NoDropShadowWindowHint self.setWindowFlags(window_flags) - self.hide() - self.show() + if refresh_window: + self.hide() + self.show() @pyqtSlot(bool) def _on_fullscreen_requested(self, on):