From 31c0fb846158db72cbe5361d54293f3e325dc39c Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Mon, 28 Dec 2009 19:26:12 +0100 Subject: [PATCH] Improve awesome conf Signed-off-by: Pierre Habouzit --- config/awesome/rc.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 2f0f578..a27550b 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -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 -- 2.20.1