From 56215a6870e2591a6ab40ab95fcb873623fd777c Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 1 Feb 2013 22:51:32 +0100 Subject: [PATCH] Fix keyboard layouts Commit 08ca70c00d06c6 added support for Xlib cursor themes by making awesome use Xlib for its X11 connection and for setting cursor icons. Everything else was still done through xcb. However, an unexpected side effect of this is that Xlib enabled the XKB extension without asking us. This changes the way that keyboard events are reported which causes problems with various keyboard events. (Normally, Xlib hides these things by silently fixing up the events that it hands out to applications. However, since we bypassed Xlib via xcb...) The fix is simple: Luckily Xlib provides a function for disabling its XKB support which is just what we need. Signed-off-by: Uli Schlachter --- awesome.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/awesome.c b/awesome.c index 3f8c81a6a..241c8836d 100644 --- a/awesome.c +++ b/awesome.c @@ -34,6 +34,7 @@ #include #include +#include #include "awesome.h" #include "spawn.h" @@ -374,6 +375,9 @@ main(int argc, char **argv) sigemptyset(&sa.sa_mask); sigaction(SIGSEGV, &sa, 0); + /* XLib sucks */ + XkbIgnoreExtension(True); + /* X stuff */ globalconf.display = XOpenDisplay(NULL); if (globalconf.display == NULL)