public
Created

Quick fix to compile gxneur (XkeycodeToKeysym -> XkbKeycodeToKeysym)

  • Download Gist
gxneur-xkeycode-fix.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
diff -r 4d58c4c49abd gxneur/src/callbacks.c
--- a/gxneur/src/callbacks.c Sun Dec 18 09:40:46 2011 +0300
+++ b/gxneur/src/callbacks.c Wed Feb 22 12:08:39 2012 +0900
@@ -30,6 +30,8 @@
#include <glade/glade.h>
+#include <X11/XKBlib.h>
+
const char *conditions_names1[] = {"contains", "begins", "ends", "coincides"};
FILE *stream = NULL;
@@ -346,7 +348,7 @@
{
if (user_data){};
- char *string = XKeysymToString(XKeycodeToKeysym(GDK_DISPLAY(), event->hardware_keycode, 0));
+ char *string = XKeysymToString(XkbKeycodeToKeysym(GDK_DISPLAY(), event->hardware_keycode, 0, 0));
gchar *modifiers = modifiers_to_string(event->state);
gchar *keycode = g_strdup_printf("%d", event->hardware_keycode);
gchar *mkey = g_strdup_printf("%s%s", modifiers, (string != NULL) ? string : keycode);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.