[gtk+] Bug 709939 - monitor reconfiguration while GtkOffscreenWindows
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Bug 709939 - monitor reconfiguration while GtkOffscreenWindows
- Date: Fri, 11 Oct 2013 22:56:40 +0000 (UTC)
commit 4cf5ce2e08e3a94db9f081fe91269c16d8a2c31d
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]