atagen

monolith

public
Star0
Watch0

Commit f68a658c4bb9

tarball

atagen <boss@atagen.co>2026-10-19 07:51 UTC

1 file changed+3-0
toplevels: focus a window a taskbar makes fullscreen

Action::Fullscreen toggled the layout flag without touching focus. Layout::arrange only treats a window as the fullscreen one once it is in the focus history, so the request did nothing for an unfocused window, and one that did take effect left the keyboard on a covered window.
Modified file: crates/monolith/src/toplevels.rs+3 additions
@@ -58,6 +58,9 @@ impl ForeignToplevelHandler for State {
5858 {
5959 self.wm.layout.toggle_fullscreen(id);
6060 }
61+ if on && self.wm.layout.visible(id) {
62+ self.wm.layout.focus(id);
63+ }
6164 }
6265 }
6366 self.apply_layout();