From 2942b22ccfc0087bf2ce72bd25f98be472e6c411 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Sun, 10 Feb 2013 20:12:20 +0100 Subject: [PATCH] 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 --- src/core/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;