GNOME Bugzilla – Bug 756131
Disable can-fullscreen when going back, and simplify the state changes / signal emissions
Last modified: 2015-10-12 15:26:29 UTC
There are some bugs in the fullscreen code that the power of hindsight has fixed for us in gnome-documents: a) We are not disabling can-fullscreen when going back to the overviews from the preview. b) The fact that the mode changes between the emissions of can-fullscreen-changed and window-mode-changed is confusing. We should generally avoid racy situations like this so that we can easily enforce the invariants of our state machine. We should cherry pick these fixes from gnome-documents.
Created attachment 312742 [details] [review] embed, mode-controller: Rearrange the code for subsequent fixes
Created attachment 312743 [details] [review] mode-controller: Set the fullscreen policy when going back
Created attachment 312744 [details] [review] mode-controller: Fix typo
Created attachment 312746 [details] [review] mode-controller: Clean up the fullscreen code
These patches look good to me.
*** Bug 742747 has been marked as a duplicate of this bug. ***