awesomerc: remove mouse warping example

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-01-15 15:36:24 +01:00
parent 1749ef672f
commit dd98dceea8
1 changed files with 0 additions and 15 deletions

View File

@ -416,21 +416,6 @@ awful.hooks.arrange.register(function (screen)
local c = awful.client.focus.history.get(screen, 0) local c = awful.client.focus.history.get(screen, 0)
if c then client.focus = c end if c then client.focus = c end
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) end)
-- Hook called every second -- Hook called every second