mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 17:29:10 +00:00
Fixed warning "unix_event_emitter.cpp:569:8: warning: 'KeySym XKeycodeToKeysym(Display*, KeyCode, int)' is deprecated (declared at /usr/include/X11/Xlib.h:1695)"
This commit is contained in:
parent
be0cd80674
commit
4f16007da6
1 changed files with 2 additions and 1 deletions
|
@ -566,7 +566,8 @@ bool CUnixEventEmitter::processMessage (XEvent &event, CEventServer *server)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
k = XKeycodeToKeysym(_dpy, keyCode, 0);
|
int keysyms_per_keycode_return;
|
||||||
|
k = (KeySym)XGetKeyboardMapping(_dpy,keyCode,0,&keysyms_per_keycode_return);
|
||||||
}
|
}
|
||||||
|
|
||||||
// send CEventKeyDown event only if keyCode is defined
|
// send CEventKeyDown event only if keyCode is defined
|
||||||
|
|
Loading…
Reference in a new issue