Fix toggle_passthrough command

When I implemented it, I forgot to verify I actually added a way to shut
it off...
This commit is contained in:
Ben Buhse 2026-03-21 12:50:28 -05:00
commit 581f4334be
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4

View file

@ -519,6 +519,7 @@ pub fn manage(xkb_bindings: *XkbBindings) void {
xkb_bindings.passthrough_active = !xkb_bindings.passthrough_active;
var it = xkb_bindings.bindings.iterator(.forward);
while (it.next()) |binding| {
if (binding.command != .toggle_passthrough) {
if (xkb_bindings.passthrough_active) {
binding.xkb_binding_v1.disable();
} else {
@ -526,6 +527,7 @@ pub fn manage(xkb_bindings: *XkbBindings) void {
}
}
}
}
}
const std = @import("std");