From c1fc222d89ba9a46ba234465ea3487224d599213 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Tue, 3 May 2016 00:01:55 -0400 Subject: [PATCH] mouse: Fix `current_wibox` --- lib/awful/mouse/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/mouse/init.lua b/lib/awful/mouse/init.lua index 13cd23ae9..3e01a24e2 100644 --- a/lib/awful/mouse/init.lua +++ b/lib/awful/mouse/init.lua @@ -297,8 +297,8 @@ function mouse.object.set_current_client() end function mouse.object.get_current_wibox() local obj = capi.mouse.object_under_pointer() - if type(obj) == "drawin" then - return obj + if type(obj) == "drawin" and obj.get_wibox then + return obj:get_wibox() end end