From b0700e20b79896de7d28d2ff2bb18be324d8e19f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 7 Oct 2012 15:28:55 -0600 Subject: 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 https://bugzilla.gnome.org/show_bug.cgi?id=684741 --- src/core/constraints.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/constraints.c b/src/core/constraints.c index c28fc0d4..82661cdb 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 -- cgit v1.2.1