making new windows have focus, maybe
This commit is contained in:
parent
572ec2a8bf
commit
3bed180ab3
|
@ -386,13 +386,14 @@
|
||||||
(fn [c]
|
(fn [c]
|
||||||
;; Set the windows at the slave,
|
;; Set the windows at the slave,
|
||||||
;; i.e. put it at the end of others instead of setting it master.
|
;; 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
|
(when (and awesome.startup
|
||||||
(not c.size_hints.user_position)
|
(not c.size_hints.user_position)
|
||||||
(not c.size_hints.program_position))
|
(not c.size_hints.program_position))
|
||||||
;; Prevent clients from being unreachable after screen count changes.
|
;; 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)))
|
(client.connect_signal "focus" (fn [c] (set c.border_color beautiful.border_focus)))
|
||||||
|
|
Loading…
Reference in a new issue