[mutter] Revert "window: Stop a gcc warning"



commit f16f47bd38b156b64e9e620b14ed6fcdc8d84879
Author: Rui Matos <tiagomatos gmail com>
Date:   Sun Mar 18 19:53:31 2012 +0100

    Revert "window: Stop a gcc warning"
    
    This reverts commit 335d211204dbb557d7c89ce782ffb548e574f675 trying
    not to trigger the uninitialized variable warning in gcc.

 src/core/window.c |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 977fd77..b203c41 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -10754,17 +10754,20 @@ void
 meta_window_compute_tile_match (MetaWindow *window)
 {
   MetaWindow *match;
-  MetaTileMode match_tile_mode;
   MetaStack *stack;
+  MetaTileMode match_tile_mode = META_TILE_NONE;
 
   window->tile_match = NULL;
 
-  if (window->shaded ||
-      window->minimized ||
-      !META_WINDOW_TILED_SIDE_BY_SIDE (window))
+  if (window->shaded || window->minimized)
     return;
 
-  match_tile_mode = window->tile_mode;
+  if (META_WINDOW_TILED_LEFT (window))
+    match_tile_mode = META_TILE_RIGHT;
+  else if (META_WINDOW_TILED_RIGHT (window))
+    match_tile_mode = META_TILE_LEFT;
+  else
+    return;
 
   stack = window->screen->stack;
 



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