From 7c428c6dc2608693ab326ec3569b03bf8cddc4d5 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 25 Mar 2021 12:29:34 +0100 Subject: [PATCH] CIrrDeviceLinux: fix dead key/compose handling --- source/Irrlicht/CIrrDeviceLinux.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Irrlicht/CIrrDeviceLinux.cpp b/source/Irrlicht/CIrrDeviceLinux.cpp index d9e23f09..7f43c649 100644 --- a/source/Irrlicht/CIrrDeviceLinux.cpp +++ b/source/Irrlicht/CIrrDeviceLinux.cpp @@ -717,7 +717,7 @@ bool CIrrDeviceLinux::createInputContext() XGetIMValues(XInputMethod, XNQueryInputStyle, &im_supported_styles, (char*)NULL); XIMStyle bestStyle = 0; // TODO: If we want to support languages like chinese or japanese as well we probably have to work with callbacks here. - XIMStyle supportedStyle = XIMPreeditNone | XIMStatusNone; + XIMStyle supportedStyle = XIMPreeditNothing | XIMStatusNothing; for(int i=0; i < im_supported_styles->count_styles; ++i) { XIMStyle style = im_supported_styles->supported_styles[i]; @@ -820,6 +820,8 @@ bool CIrrDeviceLinux::run() { XEvent event; XNextEvent(XDisplay, &event); + if (XFilterEvent(&event, XWindow)) + continue; switch (event.type) {