From 03759b48478eb716af8b62e01ef3b5140c582f58 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 1 Feb 2013 23:06:08 +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 9178d36a..4755d1c4 100644 --- a/awesome.c +++ b/awesome.c @@ -34,6 +34,7 @@ #include #include +#include #include @@ -369,6 +370,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) { -- 2.11.4.GIT