mirror of
https://github.com/glfw/glfw.git
synced 2026-09-23 00:59:48 +00:00
Moved focus callback triggering last.
This commit is contained in:
+2
-4
@@ -1231,11 +1231,10 @@ static void processEvent(XEvent *event)
|
|||||||
if (window->x11.ic)
|
if (window->x11.ic)
|
||||||
XSetICFocus(window->x11.ic);
|
XSetICFocus(window->x11.ic);
|
||||||
|
|
||||||
_glfwInputWindowFocus(window, GL_TRUE);
|
|
||||||
|
|
||||||
if (window->cursorMode == GLFW_CURSOR_DISABLED)
|
if (window->cursorMode == GLFW_CURSOR_DISABLED)
|
||||||
disableCursor(window);
|
disableCursor(window);
|
||||||
|
|
||||||
|
_glfwInputWindowFocus(window, GL_TRUE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1252,11 +1251,10 @@ static void processEvent(XEvent *event)
|
|||||||
if (window->x11.ic)
|
if (window->x11.ic)
|
||||||
XUnsetICFocus(window->x11.ic);
|
XUnsetICFocus(window->x11.ic);
|
||||||
|
|
||||||
_glfwInputWindowFocus(window, GL_FALSE);
|
|
||||||
|
|
||||||
if (window->cursorMode == GLFW_CURSOR_DISABLED)
|
if (window->cursorMode == GLFW_CURSOR_DISABLED)
|
||||||
restoreCursor(window);
|
restoreCursor(window);
|
||||||
|
|
||||||
|
_glfwInputWindowFocus(window, GL_FALSE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user