From cb6a32da27f09261c4d561c19d1877c750d98cc3 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Fri, 17 Feb 2012 13:44:12 -0800 Subject: XQuartz: Short-circuit activateX: This also avoids a deadlock when calling activateX: before the server thread has initialized Signed-off-by: Jeremy Huddleston --- hw/xquartz/X11Application.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m index 5b38eae32..048e7875b 100644 --- a/hw/xquartz/X11Application.m +++ b/hw/xquartz/X11Application.m @@ -191,6 +191,9 @@ static void message_kit_thread (SEL selector, NSObject *arg) { } - (void) activateX:(OSX_BOOL)state { + if (_x_active == state) + return; + DEBUG_LOG("state=%d, _x_active=%d, \n", state, _x_active); if (state) { if(bgMouseLocationUpdated) { -- cgit v1.2.3