mirror of
https://github.com/glfw/glfw.git
synced 2024-11-13 14:03:52 +00:00
X11: Fix IC event mask not being added to our window
(cherry picked from commit a3d28ef52c
)
This commit is contained in:
parent
7f775302ae
commit
e8d4cc327d
@ -781,6 +781,13 @@ static GLFWbool createNativeWindow(_GLFWwindow* window,
|
|||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window->x11.ic)
|
||||||
|
{
|
||||||
|
unsigned long filter = 0;
|
||||||
|
if (XGetICValues(window->x11.ic, XNFilterEvents, &filter, NULL) == NULL)
|
||||||
|
XSelectInput(_glfw.x11.display, window->x11.handle, wa.event_mask | filter);
|
||||||
|
}
|
||||||
|
|
||||||
_glfwPlatformGetWindowPos(window, &window->x11.xpos, &window->x11.ypos);
|
_glfwPlatformGetWindowPos(window, &window->x11.xpos, &window->x11.ypos);
|
||||||
_glfwPlatformGetWindowSize(window, &window->x11.width, &window->x11.height);
|
_glfwPlatformGetWindowSize(window, &window->x11.width, &window->x11.height);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user