diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2012-09-18 16:12:48 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2012-09-18 16:12:48 +1200 |
commit | 7ec7af1a0ae1a42f0b8542ac737184561e3c6729 (patch) | |
tree | cabf3da022fe359522f21077bbaa9264a1bd65d6 /awesome/rc.lua | |
parent | Put torrenting client on tag (diff) | |
download | dotfiles-7ec7af1a0ae1a42f0b8542ac737184561e3c6729.tar.gz dotfiles-7ec7af1a0ae1a42f0b8542ac737184561e3c6729.zip |
Let's give sloppy focus another try
Diffstat (limited to 'awesome/rc.lua')
-rw-r--r-- | awesome/rc.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua index a04232c6..8f13fa86 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -338,8 +338,18 @@ awful.rules.rules = { properties = { tag = tags[1][5] } } } --- Only place new windows if they don't already have a position +-- Management hooks client.add_signal("manage", function (c, startup) + + -- Sloppy focus + c:add_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) + + -- Only place new windows if they don't already have a position if not startup then if not c.size_hints.user_position and not c.size_hints.program_position then awful.placement.no_overlap(c) |