From 93d06d4368916473ad5c9168ea1c7640357415b7 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 5 Apr 2012 14:36:14 -0400 Subject: [PATCH] Don't try to auto-maximize not-maximizable windows Starting the auto-maximize process on a window like a META_WINDOW_DESKTOP window that is not maximizable gets placement into a confused state and eventually results in the window being positioned at the wrong position (the position that an auto-maximized window would be restored to.) https://bugzilla.gnome.org/show_bug.cgi?id=673566 --- src/core/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/window.c b/src/core/window.c index b203c410a..204bc0c65 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -3018,7 +3018,7 @@ meta_window_show (MetaWindow *window) if (!window->placed) { - if (window->showing_for_first_time) + if (window->showing_for_first_time && window->has_maximize_func) { MetaRectangle work_area; meta_window_get_work_area_for_monitor (window, window->monitor->number, &work_area);