From 5a5b0de331276f1d6297e6552213aac713c287ba Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 12 Nov 2014 20:13:22 +0100 Subject: Unconditionally reset minimize_after_placement on placement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Based on metacity commit: b0700e20b79896de7d28d2ff2bb18be324d8e19f From: Florian Müllner Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=684741 --- src/core/constraints.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/constraints.c b/src/core/constraints.c index 656d1529..08d1c70a 100644 --- a/src/core/constraints.c +++ b/src/core/constraints.c @@ -582,11 +582,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; - } } + + window->minimize_after_placement = FALSE; } static void -- cgit v1.2.1