From 2eb8ebbabac527196b51dcd882262a0fab689d55 Mon Sep 17 00:00:00 2001 From: Cimbali Date: Sat, 14 Oct 2017 12:02:15 +0200 Subject: [PATCH] Consistent state for fullscreen menu item When planning to start fullscreen is cancelled last minute, the fullscreen menu item and fullscreen state of the window were out of sync. --- pympress/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pympress/ui.py b/pympress/ui.py index ae666925..05f47f86 100644 --- a/pympress/ui.py +++ b/pympress/ui.py @@ -251,7 +251,7 @@ def make_pwin(self): init_checkstates = { 'pres_pause': True, - 'pres_fullscreen': self.config.getboolean('content', 'start_fullscreen'), + 'pres_fullscreen': bool(self.c_win.get_window().get_state() & Gdk.WindowState.FULLSCREEN), 'pres_notes': self.notes_mode, 'pres_blank': self.blanked, 'pres_annot': self.show_annotations,