[gtk+/gtk-3-10] Bug 709939 - monitor reconfiguration while GtkOffscreenWindows



commit a0385b8276f609a73c063611377a8ccb292aa335
Author: Charles Reiss <woggling gmail com>
Date:   Fri Oct 11 15:53:37 2013 -0700

    Bug 709939 - monitor reconfiguration while GtkOffscreenWindows
    
    exist triggers crash on quartz. Special case the position update
    to ignore the off-screen windows.

 gdk/quartz/gdkscreen-quartz.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gdk/quartz/gdkscreen-quartz.c b/gdk/quartz/gdkscreen-quartz.c
index e83c87b..e28f3b2 100644
--- a/gdk/quartz/gdkscreen-quartz.c
+++ b/gdk/quartz/gdkscreen-quartz.c
@@ -208,7 +208,11 @@ _gdk_quartz_screen_update_window_sizes (GdkScreen *screen)
   windows = gdk_screen_get_toplevel_windows (screen);
 
   for (list = windows; list; list = list->next)
-    _gdk_quartz_window_update_position (list->data);
+    {
+      if (GDK_WINDOW_TYPE(list->data) == GDK_WINDOW_OFFSCREEN)
+        continue;
+      _gdk_quartz_window_update_position (list->data);
+    }
 
   g_list_free (windows);
 }


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