[mutter] screen: Don't try to move / resize OR windows on montior change



commit 2942b22ccfc0087bf2ce72bd25f98be472e6c411
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Sun Feb 10 20:12:20 2013 +0100

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/screen.c b/src/core/screen.c
index 75902cb..46c5e3a 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]