[hackers] [dwm] applied James Turner's XkbKeycodeToKeysym patch, thanks || anselm
changeset: 1603:737cf52cd031
tag: tip
user: anselm_AT_garbe.us
date: Sat Jun 23 20:12:49 2012 +0200
files: dwm.c
description:
applied James Turner's XkbKeycodeToKeysym patch, thanks
diff -r b7c1b13181f1 -r 737cf52cd031 dwm.c
--- a/dwm.c Sat Jun 23 10:12:46 2012 +0200
+++ b/dwm.c Sat Jun 23 20:12:49 2012 +0200
_AT_@ -36,6 +36,7 @@
#include <X11/Xlib.h>
#include <X11/Xproto.h>
#include <X11/Xutil.h>
+#include <X11/XKBlib.h>
#ifdef XINERAMA
#include <X11/extensions/Xinerama.h>
#endif /* XINERAMA */
_AT_@ -1085,7 +1086,7 @@
XKeyEvent *ev;
ev = &e->xkey;
- 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 Jun 23 2012 - 20:12:18 CEST
This archive was generated by hypermail 2.3.0
: Sat Jun 23 2012 - 20:24:11 CEST