[mutter] window: Remove obsolete code



commit 49df033b4e3daf79e9ee17f476689679fb96fc27
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Mar 8 21:37:53 2013 +0100

    window: Remove obsolete code
    
    Since the tile mode is now always reset on maximize(), this code
    no longer does anything (not to mention that side-by-side tiled
    windows haven't snapped back for a while now).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682779

 src/core/window.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index c2317a6..58c7c2e 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -3938,13 +3938,6 @@ meta_window_unmaximize_internal (MetaWindow        *window,
       window->maximized_vertically =
         window->maximized_vertically   && !unmaximize_vertically;
 
-      /* Reset the tile mode for maximized tiled windows for consistency
-       * with "normal" maximized windows, but keep other tile modes,
-       * as side-by-side tiled windows may snap back.
-       */
-      if (window->tile_mode == META_TILE_MAXIMIZED)
-        window->tile_mode = META_TILE_NONE;
-
       /* Unmaximize to the saved_rect position in the direction(s)
        * being unmaximized.
        */


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