[gnome-games] ui: Instantanously pause on toplevel focus completely lost



commit c71e3ee783d16b043b91d1d8eb51e087ed2ee341
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Fri Sep 2 10:41:09 2016 +0200

    ui: Instantanously pause on toplevel focus completely lost
    
    Avoid the 500 milliseconds delay before pausing when the toplevel focus
    is completely lost.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770426

 src/ui/application-window.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/application-window.vala b/src/ui/application-window.vala
index ddfde36..8cdf955 100644
--- a/src/ui/application-window.vala
+++ b/src/ui/application-window.vala
@@ -149,6 +149,7 @@ private class Games.ApplicationWindow : Gtk.ApplicationWindow {
        [GtkCallback]
        public bool on_window_state_event (Gdk.EventWindowState event) {
                is_fullscreen = (bool) (event.new_window_state & Gdk.WindowState.FULLSCREEN);
+               update_pause (false);
 
                return false;
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]