Skip to content

@vp1981 /gxneur-xkeycode-fix.patch
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Quick fix to compile gxneur (XkeycodeToKeysym -> XkbKeycodeToKeysym)
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.