Skip to content

Commit

Permalink
Fill the xkb_types and xkb_compatibility keymap sections
Browse files Browse the repository at this point in the history
This seems to fix Xwayland being broken (#1). Fix source:
swaywm/sway#5461 (comment)
  • Loading branch information
atx committed Jul 12, 2021
1 parent 5ceedb4 commit 6280f6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 6280f6e

Please # to comment.