Actually use the config.awesome.autofocus setting
This commit is contained in:
parent
e5d7c9a578
commit
c26403057c
@ -719,9 +719,11 @@ client.connect_signal("request::titlebars", function(c)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
-- Enable sloppy focus, so that focus follows mouse.
|
-- Enable sloppy focus, so that focus follows mouse.
|
||||||
client.connect_signal("mouse::enter", function(c)
|
if config.awesome.autofocus then
|
||||||
c:emit_signal("request::activate", "mouse_enter", { raise = false })
|
client.connect_signal("mouse::enter", function(c)
|
||||||
end)
|
c:emit_signal("request::activate", "mouse_enter", { raise = false })
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
|
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
|
||||||
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
|
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
|
||||||
|
Loading…
Reference in New Issue
Block a user