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
This commit is contained in:
Owen W. Taylor 2012-04-05 14:36:14 -04:00
parent b19c061db5
commit 93d06d4368

View File

@ -3018,7 +3018,7 @@ meta_window_show (MetaWindow *window)
if (!window->placed) if (!window->placed)
{ {
if (window->showing_for_first_time) if (window->showing_for_first_time && window->has_maximize_func)
{ {
MetaRectangle work_area; MetaRectangle work_area;
meta_window_get_work_area_for_monitor (window, window->monitor->number, &work_area); meta_window_get_work_area_for_monitor (window, window->monitor->number, &work_area);