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

@ -141,6 +141,8 @@ fn manage(wm: *WindowManager) void {
wm.initialize();
}
wm.context.xkb_bindings.manage();
// Adopt orphan windows before outputs manage so they're included
// in calculateLayout() and window.manage() this cycle.
if (wm.orphan_windows.first() != null) {