From 3bed180ab3d6775bcfe977273bc2b5bb916626ed Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 15 Oct 2020 04:56:25 -0500 Subject: [PATCH] making new windows have focus, maybe --- awesome/init.fnl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/awesome/init.fnl b/awesome/init.fnl index 73d264c..f4bac86 100644 --- a/awesome/init.fnl +++ b/awesome/init.fnl @@ -386,13 +386,14 @@ (fn [c] ;; Set the windows at the slave, ;; i.e. put it at the end of others instead of setting it master. - ;; (when (not awesome.startup) (awful.client.setslave c)) + (when (not awesome.startup) (awful.client.setslave c)) (when (and awesome.startup (not c.size_hints.user_position) (not c.size_hints.program_position)) ;; Prevent clients from being unreachable after screen count changes. - (awful.placement.no_offscreen c)))) + (awful.placement.no_offscreen c)) + (awful.client.focus.byidx 1))) (client.connect_signal "focus" (fn [c] (set c.border_color beautiful.border_focus)))