diff options
author | Florian Müllner <fmuellner@gnome.org> | 2012-10-07 15:28:55 -0600 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2012-10-12 09:55:09 +0200 |
commit | b0700e20b79896de7d28d2ff2bb18be324d8e19f (patch) | |
tree | 24f2a789b09bae6732179b2515ec67daee7e3e98 | |
parent | 5141169eb8fc0125be5d3630fa819b1f77299def (diff) | |
download | metacity-b0700e20b79896de7d28d2ff2bb18be324d8e19f.tar.gz |
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
-rw-r--r-- | 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 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 |