diff options
Diffstat (limited to 'rc.lua')
-rw-r--r-- | rc.lua | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -148,14 +148,6 @@ awful.rules.rules = { -- {{{ Signals -- Signal function to execute when a new client appears. client.connect_signal("manage", function (c, startup) - -- Enable sloppy focus - c:connect_signal("mouse::enter", function(c) - if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier - and awful.client.focus.filter(c) then - client.focus = c - end - end) - if not startup then -- Set the windows at the slave, -- i.e. put it at the end of others instead of setting it master. @@ -184,4 +176,14 @@ end) client.connect_signal("focus", function(c) c.border_color = "#b0e2ff" end) client.connect_signal("unfocus", function(c) c.border_color = "#000000" end) + +-- Enable sloppy focus +client.connect_signal("mouse::enter", + function(c) + if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier + and awful.client.focus.filter(c) then + client.focus = c + end + end) + -- }}} |