forked from Mirrorlandia_minetest/irrlicht
CIrrDeviceLinux: fix dead key/compose handling
This commit is contained in:
parent
7f0e0a57b8
commit
7c428c6dc2
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user