[gnome-documents] mainWindow: don't use modeController for fullscreen state in configure



commit 3c5b30a0f15b86483163f640f693133e1c86ed42
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Sep 19 14:48:47 2016 -0700

    mainWindow: don't use modeController for fullscreen state in configure
    
    We can just fetch the state from the GdkWindow.

 src/mainWindow.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index fe40c76..48a0c8e 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -101,7 +101,10 @@ const MainWindow = new Lang.Class({
     },
 
     _onConfigureEvent: function(widget, event) {
-        if (Application.modeController.getFullscreen())
+        let window = this.get_window();
+        let state = window.get_state();
+
+        if (state & Gdk.WindowState.FULLSCREEN)
             return;
 
         if (this._configureId != 0) {


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