diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 8ec4f8e64..b070b22c9 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -338,9 +338,11 @@ function hook_arrange(screen) local c_c = sel:coords_get() local m_c = mouse.coords_get() - 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 - mouse.coords_set(c_c.x + 1, c_c.y + 1) + 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_set(c_c.x + 5, c_c.y + 5) + end end end ]]