[metacity] Unconditionally reset minimize_after_placement on placement



commit b0700e20b79896de7d28d2ff2bb18be324d8e19f
Author: Florian MÃllner <fmuellner gnome org>
Date:   Sun Oct 7 15:28:55 2012 -0600

    Unconditionally reset minimize_after_placement on placement
    
    GTK+ has now started using _NET_WM_STATE_HIDDEN for iconified windows.
    For windows iconified at creation time, this causes metacity to set
    minimize_after_placement, which then causes the window to become
    minimized immediately after the first time it has been activated by
    the user.
    
    This happens because:
    
     (1) minimize_after_placement is reset after placing the window
     (2) if a window is minimized, placement is deferred
    
    Reset minimize_after_placement unconditionally in place_window_if_needed()
    to solve the issue.
    
    Reported and tested by Daniel Drake <dsd laptop org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684741

 src/core/constraints.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/core/constraints.c b/src/core/constraints.c
index c28fc0d..82661cd 100644
--- a/src/core/constraints.c
+++ b/src/core/constraints.c
@@ -570,11 +570,10 @@ place_window_if_needed(MetaWindow     *window,
           window->maximize_vertically_after_placement = FALSE;
         }
       if (window->minimize_after_placement)
-        {
-          meta_window_minimize (window);
-          window->minimize_after_placement = FALSE;
-        }
+        meta_window_minimize (window);
     }
+
+    window->minimize_after_placement = FALSE;
 }
 
 static void



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