Skip to content

Commit

Permalink
Consistent state for fullscreen menu item
Browse files Browse the repository at this point in the history
When planning to start fullscreen is cancelled last minute, the
fullscreen menu item and fullscreen state of the window were out of sync.
  • Loading branch information
Cimbali committed Oct 14, 2017
1 parent 0082d80 commit 2eb8ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pympress/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2eb8ebb

Please sign in to comment.