aboutsummaryrefslogtreecommitdiff
path: root/awesome
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-09-18 16:12:48 +1200
committerTom Ryder <tom@sanctum.geek.nz>2012-09-18 16:12:48 +1200
commit7ec7af1a0ae1a42f0b8542ac737184561e3c6729 (patch)
treecabf3da022fe359522f21077bbaa9264a1bd65d6 /awesome
parentPut torrenting client on tag (diff)
downloaddotfiles-7ec7af1a0ae1a42f0b8542ac737184561e3c6729.tar.gz
dotfiles-7ec7af1a0ae1a42f0b8542ac737184561e3c6729.zip
Let's give sloppy focus another try
Diffstat (limited to 'awesome')
-rw-r--r--awesome/rc.lua12
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)