mirror of
https://github.com/glfw/glfw.git
synced 2025-04-10 15:24:08 +00:00
Moved focus callback triggering last.
This commit is contained in:
parent
dba59cf903
commit
e049190ff1
1 changed files with 2 additions and 4 deletions
|
@ -1231,11 +1231,10 @@ static void processEvent(XEvent *event)
|
|||
if (window->x11.ic)
|
||||
XSetICFocus(window->x11.ic);
|
||||
|
||||
_glfwInputWindowFocus(window, GL_TRUE);
|
||||
|
||||
if (window->cursorMode == GLFW_CURSOR_DISABLED)
|
||||
disableCursor(window);
|
||||
|
||||
_glfwInputWindowFocus(window, GL_TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1252,11 +1251,10 @@ static void processEvent(XEvent *event)
|
|||
if (window->x11.ic)
|
||||
XUnsetICFocus(window->x11.ic);
|
||||
|
||||
_glfwInputWindowFocus(window, GL_FALSE);
|
||||
|
||||
if (window->cursorMode == GLFW_CURSOR_DISABLED)
|
||||
restoreCursor(window);
|
||||
|
||||
_glfwInputWindowFocus(window, GL_FALSE);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue