diff options
author | Jeremy Huddleston <jeremy@yuffie.local> | 2009-02-24 18:54:16 -0800 |
---|---|---|
committer | Jeremy Huddleston <jeremy@yuffie.local> | 2009-02-24 22:22:03 -0800 |
commit | 4b63f88b0ad5f6614fee5b7af4f97ce4581ab935 (patch) | |
tree | 86c0f70c6fc5cb46300ab387c2b2acdc4eaf4390 | |
parent | 5672e2d66444be74125c71b81373b82f8e1b7dd2 (diff) |
XQuartz: Comment out the background pointer interaction that seems to be causing CPU spinning on some configurations
(cherry picked from commit 1d479fa4f3bca9cbd81808a6c87582422fd2a257)
-rw-r--r-- | hw/xquartz/X11Application.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m index 7bf4d71f5..b82c89ff2 100644 --- a/hw/xquartz/X11Application.m +++ b/hw/xquartz/X11Application.m @@ -1059,6 +1059,11 @@ static inline int ensure_flag(int flags, int device_independent, int device_depe pDev = darwinTabletCurrent; } +/* Seems this has somehow triggered 100% CPU usage while X11.app is in the + * background on some obscure HW configurations. + * http://xquartz.macosforge.org/trac/ticket/241 + */ +#if 0 /* 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 @@ -1079,6 +1084,7 @@ static inline int ensure_flag(int flags, int device_independent, int device_depe } #endif #endif +#endif DarwinSendPointerEvents(pDev, ev_type, ev_button, pointer_x, pointer_y, pressure, tilt_x, tilt_y); |