Hi,
On 09.01.2013 16:46, Christopher Schmidt wrote:
> Uli Schlachter <[email protected]> writes:
[...]
>> I check Xlib's source code and I found some env vars which might be
>> useful. Could someone please start awesome with these variables:
>>
>> XKB_DEBUG=1 XKB_DISABLE=1 awesome
>>
>> This should print a message "XKEYBOARD extension disabled or missing"
>> and hopefully fix this issue.
>
> This fixes the issue. Thank you very much.
OK, so let's turn this into a patch. Could at least two different persons test
the attached patch on 3.4 and confirm that this fixes our issue? Seems like we
will have an awesome 3.4.15 release.
Uli
P.S.: Proposals for a code name?
--
- Buck, when, exactly, did you lose your mind?
- Three months ago. I woke up one morning married to a pineapple.
An ugly pineapple... But I loved her.
diff --git a/awesome.c b/awesome.c
index 3f8c81a..241c883 100644
--- a/awesome.c
+++ b/awesome.c
@@ -34,6 +34,7 @@
#include <xcb/xtest.h>
#include <X11/Xlib-xcb.h>
+#include <X11/XKBlib.h>
#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)