Improve awesome conf
authorPierre Habouzit <madcoder@debian.org>
Mon, 28 Dec 2009 18:26:12 +0000 (19:26 +0100)
committerPierre Habouzit <madcoder@debian.org>
Mon, 28 Dec 2009 18:26:12 +0000 (19:26 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
config/awesome/rc.lua

index 2f0f578..a27550b 100644 (file)
@@ -7,7 +7,7 @@ require("awful.rules")
 require("vicious")
 require("beautiful")
 
-terminal = "x-terminal-emulator"
+terminal = "urxvtcd"
 lock     = 'xscreensaver-command -lock'
 beautiful.init(awful.util.getdir("config").."/theme")
 
@@ -503,8 +503,8 @@ awful.rules.rules = {
 -- {{{ Signals
 
 function warp_mouse(c)
-    local o = awful.mouse.client_under_pointer()
-    if not o or o ~= c then
+    local o = mouse.object_under_pointer()
+    if not o or (o ~= c and type(o) == "client") then
         local g = c:geometry()
         mouse.coords({ x = g.x + 5, y = g.y + 5 }, true)
     end