From 651140c38e439c5497021ba00cb110df9b8de836 Mon Sep 17 00:00:00 2001 From: woodpenker Date: Wed, 2 Sep 2020 23:06:50 +0800 Subject: [PATCH] fix: #1761 update to avoid switch when last window minimized. --- guake/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guake/utils.py b/guake/utils.py index bcf87701b..f02f641fb 100644 --- a/guake/utils.py +++ b/guake/utils.py @@ -169,7 +169,7 @@ def set_window_state(self, window_state): if not window_state & Gdk.WindowState.WITHDRAWN: if self.is_fullscreen(): self.fullscreen() - elif window_state & Gdk.WindowState.FOCUSED: + elif window_state & Gdk.WindowState.FOCUSED and self.guake.hidden: self.unfullscreen() def fullscreen(self):