public
Created

Patch for xneur-0.15 (XKeycodeToKeysym -> XkbKeycodeToKeysym)

  • Download Gist
xneur-xkeycode-fix.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
diff -r 4d58c4c49abd xneur/lib/main/event.c
--- a/xneur/lib/main/event.c Sun Dec 18 09:40:46 2011 +0300
+++ b/xneur/lib/main/event.c Wed Feb 22 12:03:16 2012 +0900
@@ -18,6 +18,7 @@
*/
#include <X11/keysym.h>
+#include <X11/XKBlib.h>
#include <stdlib.h>
#include <stdio.h>
@@ -141,7 +142,7 @@
return ks;*/
XKeyEvent *e = (XKeyEvent *) &p->event;
- return XKeycodeToKeysym(main_window->display, e->keycode, 0);
+ return XkbKeycodeToKeysym(main_window->display, e->keycode, 0, 0);
}
static int event_get_cur_modifiers(struct _event *p)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.