From 49df033b4e3daf79e9ee17f476689679fb96fc27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 8 Mar 2013 21:37:53 +0100 Subject: [PATCH] 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 file changed, 7 deletions(-) diff --git a/src/core/window.c b/src/core/window.c index c2317a689..58c7c2ebe 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. */