mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-09 05:20:16 +01:00
XQuartz: Short-circuit activateX:
This also avoids a deadlock when calling activateX: before the server
thread has initialized
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit cb6a32da27)
Conflicts:
hw/xquartz/X11Application.m
This commit is contained in:
parent
62159b3a31
commit
a43eb73573
1 changed files with 5 additions and 1 deletions
|
|
@ -190,7 +190,11 @@ static void message_kit_thread (SEL selector, NSObject *arg) {
|
|||
|
||||
- (void) activateX:(OSX_BOOL)state {
|
||||
size_t i;
|
||||
DEBUG_LOG("state=%d, _x_active=%d, \n", state, _x_active)
|
||||
|
||||
if (_x_active == state)
|
||||
return;
|
||||
|
||||
DEBUG_LOG("state=%d, _x_active=%d, \n", state, _x_active);
|
||||
if (state) {
|
||||
if(bgMouseLocationUpdated) {
|
||||
DarwinSendPointerEvents(darwinPointer, MotionNotify, 0, bgMouseLocation.x, bgMouseLocation.y, 0.0, 0.0, 0.0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue