summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-12 20:13:22 +0100
committerinfirit <[email protected]>2014-11-12 20:36:50 +0100
commit5a5b0de331276f1d6297e6552213aac713c287ba (patch)
treec523848d57cd353e7c7cee1f88f216f800005e73 /src
parent109f0c7975cfe640071fbedb733fc157a0357985 (diff)
downloadmarco-5a5b0de331276f1d6297e6552213aac713c287ba.tar.bz2
marco-5a5b0de331276f1d6297e6552213aac713c287ba.tar.xz
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 <[email protected]> Based on metacity commit: b0700e20b79896de7d28d2ff2bb18be324d8e19f From: Florian Müllner <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=684741
Diffstat (limited to 'src')
-rw-r--r--src/core/constraints.c5
1 files 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