Implement passthrough mode

When active, key presses are passed directly to the focused window.
I've mostly used this for testing beansprout, but I'm sure there are
other uses.
This commit is contained in:
Ben Buhse 2026-02-22 08:59:45 -06:00
commit 1b37ab7afd
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
4 changed files with 50 additions and 12 deletions

View file

@ -145,6 +145,7 @@ pub fn load(config: *Config, parser: *kdl.Parser, hostname: ?[]const u8) !void {
.swap_next,
.swap_prev,
.center_float,
.toggle_passthrough,
=> |cmd| {
// None of these have arguments, just create the union and give it back
break :sw @unionInit(XkbBindings.Command, @tagName(cmd), {});