From 6280f6eb59a7586d6d01b8fa4e4100880c6ae8c6 Mon Sep 17 00:00:00 2001 From: Josef Gajdusek Date: Mon, 12 Jul 2021 02:46:40 +0200 Subject: [PATCH] Fill the xkb_types and xkb_compatibility keymap sections This seems to fix Xwayland being broken (#1). Fix source: https://github.com/swaywm/sway/issues/5461#issuecomment-872633821 --- main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index cec1cc2..d06fd43 100644 --- a/main.c +++ b/main.c @@ -428,8 +428,9 @@ static void upload_keymap(struct wtype *wtype) } fprintf(f, "};\n"); - fprintf(f, "xkb_types \"(unnamed)\" {};\n"); - fprintf(f, "xkb_compatibility \"(unnamed)\" {};\n"); + // TODO: Is including "complete" here really a good idea? + fprintf(f, "xkb_types \"(unnamed)\" { include \"complete\" };\n"); + fprintf(f, "xkb_compatibility \"(unnamed)\" { include \"complete\" };\n"); fprintf(f, "xkb_symbols \"(unnamed)\" {\n"); for (size_t i = 0; i < wtype->keymap_len; i++) {