CIrrDeviceLinux: fix dead key/compose handling

This commit is contained in:
sfan5 2021-03-25 12:29:34 +01:00
parent 7f0e0a57b8
commit 7c428c6dc2
1 changed files with 3 additions and 1 deletions

View File

@ -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)
{