awesomerc: remove mouse warping example
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
1749ef672f
commit
dd98dceea8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue