Actually use the config.awesome.autofocus setting

This commit is contained in:
Alice Gaudon 2020-02-15 18:47:03 +01:00
parent e5d7c9a578
commit c26403057c

View File

@ -719,9 +719,11 @@ client.connect_signal("request::titlebars", function(c)
end)
-- Enable sloppy focus, so that focus follows mouse.
client.connect_signal("mouse::enter", function(c)
c:emit_signal("request::activate", "mouse_enter", { raise = false })
end)
if config.awesome.autofocus then
client.connect_signal("mouse::enter", function(c)
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("unfocus", function(c) c.border_color = beautiful.border_normal end)