From 7a47355c99e57705defae0d1b3d75b94032f6211 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 17 Mar 2013 22:18:48 +0100 Subject: [PATCH] awful.mouse: Follow C API changes Whoops. This was broken ages ago. Thanks to Elv13 for making me notice. Signed-off-by: Uli Schlachter --- lib/awful/mouse/init.lua.in | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/lib/awful/mouse/init.lua.in b/lib/awful/mouse/init.lua.in index a2553ac4..42ecd42d 100644 --- a/lib/awful/mouse/init.lua.in +++ b/lib/awful/mouse/init.lua.in @@ -41,24 +41,15 @@ function mouse.client_under_pointer() end end ---- Get the wibox object under the pointer. --- @return The wibox object under the pointer, if one can be found. -function mouse.wibox_under_pointer() +--- Get the drawin object under the pointer. +-- @return The drawin object under the pointer, if one can be found. +function mouse.drawin_under_pointer() local obj = capi.mouse.object_under_pointer() - if type(obj) == "wibox" then + if type(obj) == "drawin" then return obj end end ---- Get the widget under the pointer. --- @return The widget object under the pointer, if it can be found. -function mouse.widget_under_pointer() - local obj, obj2 = capi.mouse.object_under_pointer() - if type(obj2) == "widget" then - return obj2 - end -end - local function snap_outside(g, sg, snap) if g.x < snap + sg.x + sg.width and g.x > sg.x + sg.width then g.x = sg.x + sg.width