(wrong string) »XKeycodeToKeysym. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Sat, 7 Jul 2012 22:51:27 +0200 (CEST)

changeset: 167:0c0023406ac3
user: Christoph Lohmann <20h_AT_r-36.net>
date: Sat Jul 07 22:50:26 2012 +0200
files: tabbed.c
description:
Removing the warning about »XKeycodeToKeysym.


diff -r 76455d9b724a -r 0c0023406ac3 tabbed.c
--- a/tabbed.c Sat Jul 07 22:47:06 2012 +0200
+++ b/tabbed.c Sat Jul 07 22:50:26 2012 +0200
_AT_@ -14,6 +14,7 @@
 #include <X11/Xlib.h>
 #include <X11/Xproto.h>
 #include <X11/Xutil.h>
+#include <X11/XKBlib.h>
 
 #include "arg.h"
 
_AT_@ -542,7 +543,7 @@
         unsigned int i;
         KeySym keysym;
 
- keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
+ keysym = XkbKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0, 0);
         for(i = 0; i < LENGTH(keys); i++)
                 if(keysym == keys[i].keysym
                 && CLEANMASK(keys[i].mod) == CLEANMASK(ev->state)
Received on Sat Jul 07 2012 - 22:51:27 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 07 2012 - 23:00:09 CEST