mouse: Fix `current_wibox`

This commit is contained in:
Emmanuel Lepage Vallee 2016-05-03 00:01:55 -04:00
parent baf290a8b2
commit c1fc222d89
1 changed files with 2 additions and 2 deletions

View File

@ -297,8 +297,8 @@ function mouse.object.set_current_client() end
function mouse.object.get_current_wibox() function mouse.object.get_current_wibox()
local obj = capi.mouse.object_under_pointer() local obj = capi.mouse.object_under_pointer()
if type(obj) == "drawin" then if type(obj) == "drawin" and obj.get_wibox then
return obj return obj:get_wibox()
end end
end end