mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 21:30:57 +00:00
Merge d48fc47dc9
into ec6f0811a0
This commit is contained in:
commit
7d9e476185
@ -893,12 +893,6 @@ static void processEvent(XEvent *event)
|
|||||||
Status status;
|
Status status;
|
||||||
wchar_t buffer[16];
|
wchar_t buffer[16];
|
||||||
|
|
||||||
if (XFilterEvent(event, None))
|
|
||||||
{
|
|
||||||
// Discard intermediary (dead key) events for character input
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
const int count = XwcLookupString(window->x11.ic,
|
const int count = XwcLookupString(window->x11.ic,
|
||||||
&event->xkey,
|
&event->xkey,
|
||||||
buffer, sizeof(buffer),
|
buffer, sizeof(buffer),
|
||||||
@ -1721,6 +1715,8 @@ void _glfwPlatformPollEvents(void)
|
|||||||
{
|
{
|
||||||
XEvent event;
|
XEvent event;
|
||||||
XNextEvent(_glfw.x11.display, &event);
|
XNextEvent(_glfw.x11.display, &event);
|
||||||
|
if (XFilterEvent(event, None))
|
||||||
|
continue;
|
||||||
processEvent(&event);
|
processEvent(&event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user