Config: use a single xkb keymap for all keyboards

This is nice simplification and allows us to abort startup if the
default xkb configuration (perhaps influenced by XKB_DEFAULT_*
environment variables) is invalid.
This commit is contained in:
Isaac Freund
2022-12-30 23:11:04 +01:00
parent 8f8d94aa45
commit 6a028639b8
5 changed files with 36 additions and 43 deletions

View File

@ -464,9 +464,6 @@ fn handleMappingRepeatTimeout(self: *Self) callconv(.C) c_int {
pub fn addDevice(self: *Self, wlr_device: *wlr.InputDevice) void {
self.tryAddDevice(wlr_device) catch |err| switch (err) {
error.OutOfMemory => log.err("out of memory", .{}),
error.XkbContextFailed => log.err("failed to create xkbcommon context", .{}),
error.XkbKeymapFailed => log.err("failed to create xkbcommon keymap", .{}),
error.SetKeymapFailed => log.err("failed to set wlroots keymap", .{}),
};
}