From ce020ab718b0ea09224dd15fc9a5796b3acc7904 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Fri, 11 Oct 2024 20:43:20 -0500 Subject: overhaul awesome --- awesome/warpcursor.lua | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 awesome/warpcursor.lua (limited to 'awesome/warpcursor.lua') diff --git a/awesome/warpcursor.lua b/awesome/warpcursor.lua deleted file mode 100644 index f1a46bd..0000000 --- a/awesome/warpcursor.lua +++ /dev/null @@ -1,22 +0,0 @@ -function warp_cursor(c) --- if c ~= client.focus or not c.warp_cursor then - if not c.warp_cursor then - return - end - - -- dont allow moving mouse unless it is over another client or over nothing - local canmovemouse = mouse.current_client or (mouse.current_wibox or mouse.current_widget) == nil - - if canmovemouse and mouse.current_client ~= c then - mouse.coords { - x = c.x + (c.width / 2), - y = c.y + (c.height / 2), - } - end -end - -client.connect_signal("focus", warp_cursor) ---client.connect_signal("property::size", warp_cursor) ---client.connect_signal("property::position", warp_cursor) - -return warp_cursor -- cgit v1.2.3