Replace deprecated X functions XKeycodeToKeysym to XkbKeycodeToKeysym using XKBlib.h

This commit is contained in:
Martin Duquesnoy 2012-06-22 19:06:47 +02:00
parent 59af606147
commit 018176c4ef
2 changed files with 4 additions and 2 deletions

View File

@ -304,7 +304,7 @@ client_swap(struct client *c, enum position p)
if(ev.type == KeyPress) if(ev.type == KeyPress)
{ {
XKeyPressedEvent *ke = &ev.xkey; XKeyPressedEvent *ke = &ev.xkey;
keysym = XKeycodeToKeysym(W->dpy, (KeyCode)ke->keycode, 0); keysym = XkbKeycodeToKeysym(W->dpy, (KeyCode)ke->keycode, 0, 0);
_REV_SBORDER(); _REV_SBORDER();
@ -1368,7 +1368,7 @@ client_fac_resize(struct client *c, enum position p, int fac)
if(ev.type == KeyPress) if(ev.type == KeyPress)
{ {
XKeyPressedEvent *ke = &ev.xkey; XKeyPressedEvent *ke = &ev.xkey;
keysym = XKeycodeToKeysym(W->dpy, (KeyCode)ke->keycode, 0); keysym = XkbKeycodeToKeysym(W->dpy, (KeyCode)ke->keycode, 0, 0);
_REV_BORDER(); _REV_BORDER();

View File

@ -6,6 +6,8 @@
#ifndef CLIENT_H #ifndef CLIENT_H
#define CLIENT_H #define CLIENT_H
#include <X11/XKBlib.h>
#include "wmfs.h" #include "wmfs.h"
#include "layout.h" #include "layout.h"
#include "ewmh.h" #include "ewmh.h"