[totem] main: Track the maximised state



commit be09ba3ebdb9ec1a2347f6c86badf5152bc87ecd
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 10 14:32:12 2014 +0100

    main: Track the maximised state
    
    https://bugzilla.gnome.org/show_bug.cgi?id=703655

 src/totem-object.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index ca37035..0fa22b1 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1526,6 +1526,8 @@ window_state_event_cb (GtkWidget           *window,
 {
        GAction *action;
 
+       totem->maximised = !!(event->new_window_state & GDK_WINDOW_STATE_MAXIMIZED);
+
        if ((event->changed_mask & GDK_WINDOW_STATE_FULLSCREEN) == 0)
                return FALSE;
 


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