summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-07-29 13:01:21 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-07-29 13:01:21 -0400
commit0770389614e0e8d2afe16115a52e2cbecc53390d (patch)
treebc96fbf95ebe18157a47c52356eeb8af73c896d0
parent2718a54bbe0f2b3806a08ec46b41fbdef0aca796 (diff)
clarify incxkbrules function
-rw-r--r--dwl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 3311ebd..a0ed38e 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1101,8 +1101,9 @@ incxkbrules(const Arg *arg)
context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
if (!(keymap = xkb_keymap_new_from_names(context, &xkb_rules[kblayout],
- XKB_KEYMAP_COMPILE_NO_FLAGS)))
+ XKB_KEYMAP_COMPILE_NO_FLAGS))) {
die("failed to compile keymap");
+ }
wlr_keyboard_set_keymap(&kb_group->wlr_group->keyboard, keymap);
xkb_keymap_unref(keymap);