|
|
|
@ -1746,9 +1746,6 @@ static void processEvent(XEvent *event) |
|
|
|
|
|
|
|
|
|
case FocusIn: |
|
|
|
|
{ |
|
|
|
|
if (window->cursorMode == GLFW_CURSOR_DISABLED) |
|
|
|
|
disableCursor(window); |
|
|
|
|
|
|
|
|
|
if (event->xfocus.mode == NotifyGrab || |
|
|
|
|
event->xfocus.mode == NotifyUngrab) |
|
|
|
|
{ |
|
|
|
@ -1757,6 +1754,9 @@ static void processEvent(XEvent *event) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (window->cursorMode == GLFW_CURSOR_DISABLED) |
|
|
|
|
disableCursor(window); |
|
|
|
|
|
|
|
|
|
if (window->x11.ic) |
|
|
|
|
XSetICFocus(window->x11.ic); |
|
|
|
|
|
|
|
|
@ -1766,9 +1766,6 @@ static void processEvent(XEvent *event) |
|
|
|
|
|
|
|
|
|
case FocusOut: |
|
|
|
|
{ |
|
|
|
|
if (window->cursorMode == GLFW_CURSOR_DISABLED) |
|
|
|
|
enableCursor(window); |
|
|
|
|
|
|
|
|
|
if (event->xfocus.mode == NotifyGrab || |
|
|
|
|
event->xfocus.mode == NotifyUngrab) |
|
|
|
|
{ |
|
|
|
@ -1777,6 +1774,9 @@ static void processEvent(XEvent *event) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (window->cursorMode == GLFW_CURSOR_DISABLED) |
|
|
|
|
enableCursor(window); |
|
|
|
|
|
|
|
|
|
if (window->x11.ic) |
|
|
|
|
XUnsetICFocus(window->x11.ic); |
|
|
|
|
|
|
|
|
|