[mutter] Don't try to auto-maximize not-maximizable windows
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] Don't try to auto-maximize not-maximizable windows
- Date: Thu, 5 Apr 2012 18:56:40 +0000 (UTC)
commit 93d06d4368916473ad5c9168ea1c7640357415b7
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Apr 5 14:36:14 2012 -0400
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index b203c41..204bc0c 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]