From dd98dceea834dfcaac2880bed53392eb1144d0a4 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 15 Jan 2009 15:36:24 +0100 Subject: [PATCH] awesomerc: remove mouse warping example Signed-off-by: Julien Danjou --- awesomerc.lua.in | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index ebf307033..92fa6eecc 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -416,21 +416,6 @@ awful.hooks.arrange.register(function (screen) local c = awful.client.focus.history.get(screen, 0) if c then client.focus = c end end - - -- Uncomment if you want mouse warping - --[[ - if client.focus then - local c_c = client.focus:geometry() - local m_c = mouse.coords() - - if m_c.x < c_c.x or m_c.x >= c_c.x + c_c.width or - m_c.y < c_c.y or m_c.y >= c_c.y + c_c.height then - if table.maxn(m_c.buttons) == 0 then - mouse.coords({ x = c_c.x + 5, y = c_c.y + 5}) - end - end - end - ]] end) -- Hook called every second