wmbiff: XKeycodeToKeysym is deprecated.

This commit is contained in:
Gabriel VLASIU 2013-04-03 18:39:35 +03:00 committed by Carlos R. Mafra
parent ffd089ef58
commit 6962c80435

View file

@ -23,7 +23,7 @@
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/xpm.h> #include <X11/xpm.h>
#include <X11/cursorfont.h> #include <X11/cursorfont.h>
#include <X11/keysym.h> #include <X11/XKBlib.h>
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
@ -1084,7 +1084,7 @@ extern void ProcessPendingEvents(void)
break; break;
case KeyPress:{ case KeyPress:{
XKeyPressedEvent *xkpe = (XKeyPressedEvent *) & Event; XKeyPressedEvent *xkpe = (XKeyPressedEvent *) & Event;
KeySym ks = XKeycodeToKeysym(display, xkpe->keycode, 0); KeySym ks = XkbKeycodeToKeysym(display, xkpe->keycode, 0, 0);
if (ks > XK_0 && ks < XK_0 + min(9U, num_mailboxes)) { if (ks > XK_0 && ks < XK_0 + min(9U, num_mailboxes)) {
const char *click_action = mbox[ks - XK_1].action; const char *click_action = mbox[ks - XK_1].action;
if (click_action != NULL if (click_action != NULL