From c3bccfcaf286fab8865e98dcd23c69c63de86956 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Fri, 9 Jul 2021 12:01:12 +0200 Subject: [PATCH] Also auto_tile on Focus events Actually, I'd rather wish there was a Resize event so that one could auto_tile after resizes (a window might become to small for splith or wide enough for splith) but there is no such event. So by switching focus back and forth, one can have the same effect. --- src/demon.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/demon.rs b/src/demon.rs index 3d804f2..064a837 100644 --- a/src/demon.rs +++ b/src/demon.rs @@ -121,6 +121,7 @@ fn handle_window_event( } = *ev; match change { s::WindowChange::Focus => { + maybe_auto_tile(layout); update_last_focus_time(container.id, extra_props); println!("Handled window event type {:?}", change); true