summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdel Gadllah <adel.gadllah@gmail.com>2013-02-10 20:12:20 +0100
committerAdel Gadllah <adel.gadllah@gmail.com>2013-02-10 20:43:03 +0100
commit2942b22ccfc0087bf2ce72bd25f98be472e6c411 (patch)
treeb340299402dd5af6ad51b01a47ec0174d035b154
parent94e6e55ef7021af56507515111af66f102b43ad7 (diff)
downloadmutter-2942b22ccfc0087bf2ce72bd25f98be472e6c411.tar.gz
screen: Don't try to move / resize OR windows on montior change
meta_screen_resize calls meta_window_update_for_monitors_changed for all windows including OR windows when the monitors change (or screen size). This calls meta_window_move_between_rects for the window which attempts to move the OR window by calling meta_window_move_resize. meta_window_move_resize refuses to do anything on OR windows (just returns for OR windows). This causes a storm of assert messages when the screen resolution changes while an OR window is visible. (like the one gnome-control-center displays with the monitor name). Fix that by not calling meta_window_update_for_monitors_changed for OR windows and let the applications handle them by themselves. https://bugzilla.gnome.org/show_bug.cgi?id=693540
-rw-r--r--src/core/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/screen.c b/src/core/screen.c
index 75902cb7d..46c5e3ab6 100644
--- a/src/core/screen.c
+++ b/src/core/screen.c
@@ -2952,7 +2952,7 @@ meta_screen_resize (MetaScreen *screen,
/* Fix up monitor for all windows on this screen */
windows = meta_display_list_windows (screen->display,
- META_LIST_INCLUDE_OVERRIDE_REDIRECT);
+ META_LIST_DEFAULT);
for (tmp = windows; tmp != NULL; tmp = tmp->next)
{
MetaWindow *window = tmp->data;