xserver: Branch 'xorg-server-1.4-apple'

Jeremy Huddleston jeremyhu at kemper.freedesktop.org
Wed Dec 10 23:05:36 PST 2008


 hw/xquartz/X11Application.m |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 748d9e5bd756513d42c4046f3b31e1fdc55bccb6
Author: Jeremy Huddleston <jeremyhu at freedesktop.org>
Date:   Wed Dec 10 23:04:30 2008 -0800

    XQuartz: Tiger fix, don't call Xplugin code in the Appkit thread if Xplugin isn't threadsafe.

diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m
index d03d3b6..45aca24 100644
--- a/hw/xquartz/X11Application.m
+++ b/hw/xquartz/X11Application.m
@@ -1008,6 +1008,9 @@ extern int darwin_modifier_flags; // darwinEvents.c
                 pDev = darwinTabletCurrent;
             }
 
+/* Older libXplugin (Tiger/"Stock" Leopard) aren't thread safe, so we can't call xp_find_window from the Appkit thread */
+#ifdef XPLUGIN_VERSION
+#if XPLUGIN_VERSION > 0
             if(!quartzServerVisible) {
                 xp_window_id wid;
 
@@ -1023,6 +1026,8 @@ extern int darwin_modifier_flags; // darwinEvents.c
                     wid == 0)
                     return;        
             }
+#endif
+#endif
             
             DarwinSendPointerEvents(pDev, ev_type, ev_button, pointer_x, pointer_y,
                                     pressure, tilt_x, tilt_y);


More information about the xorg-commit mailing list