[gnome-documents] windowMode: Don't fullscreen the window against the user's wish



commit d6f4a485aace028287998c006fd4817668dcf624
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Tue Sep 3 21:06:49 2013 +0200

    windowMode: Don't fullscreen the window against the user's wish
    
    Stop doing that. When the user explicitly asked for maximize and not
    fullscreen respect that decision. If the user wants to fullscreen it is
    one click / button away.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696931

 src/windowMode.js |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/src/windowMode.js b/src/windowMode.js
index 4a09235..3f90364 100644
--- a/src/windowMode.js
+++ b/src/windowMode.js
@@ -58,19 +58,6 @@ const ModeController = new Lang.Class({
         this._mode = mode;
 
         this.emit('window-mode-changed', this._mode, oldMode);
-
-        if (mode != WindowMode.PREVIEW)
-            return;
-
-        let window = Application.application.get_active_window();
-        let gdkWindow = window.get_window();
-
-        if (gdkWindow) {
-            let windowState = gdkWindow.get_state();
-
-            if (windowState & Gdk.WindowState.MAXIMIZED)
-                this.setFullscreen(true);
-        }
     },
 
     getWindowMode: function() {


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