Fix crash when changing focused output

With output_focus_follows_pointer=true, moving the pointer to a different
output would update Seat's "focused" output, but not the actual focused
window. If you then tried to changed focused outputs with keybinds, the
assertion in XkbBindings.focusOutput() would fail.

This commit also adds support for unfocusing a window on a pointer_leave
event.

Reported-by: Badacko
Fixes: #7
This commit is contained in:
Ben Buhse 2026-04-01 17:51:51 -05:00
commit ed72d8a15d
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
2 changed files with 30 additions and 15 deletions

View file

@ -1,7 +1,8 @@
# TODOs
These are in rough order of my priority, though no promises I do them in this order.
These are in no particular order anymore.
- [ ] Save focused window when switching back and forth between outputs via keybind
- [ ] Add a config for how to focus when a window opens with a rule on another tag; should we switch tags, add tags, or just ignore it?
- [ ] Support per-output single window ratio (in config; this already works at runtime)
- [ ] Support per-output wallpapers