Browse Source

Replace deprecated X functions XKeycodeToKeysym to XkbKeycodeToKeysym using XKBlib.h

Martin Duquesnoy 12 years ago
parent
commit
018176c4ef
2 changed files with 4 additions and 2 deletions
  1. 2 2
      src/client.c
  2. 2 0
      src/client.h

+ 2 - 2
src/client.c

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

+ 2 - 0
src/client.h

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