mouse: respect border width in get_current_widgets (#2990)
This commit is contained in:
parent
59b31e74b3
commit
6779a61b40
|
@ -126,8 +126,9 @@ function mouse.object.get_current_widgets()
|
||||||
local w = mouse.object.get_current_wibox()
|
local w = mouse.object.get_current_wibox()
|
||||||
if w then
|
if w then
|
||||||
local geo, coords = w:geometry(), capi.mouse:coords()
|
local geo, coords = w:geometry(), capi.mouse:coords()
|
||||||
|
local bw = w.border_width
|
||||||
|
|
||||||
local list = w:find_widgets(coords.x - geo.x, coords.y - geo.y)
|
local list = w:find_widgets(coords.x - geo.x - bw, coords.y - geo.y - bw)
|
||||||
|
|
||||||
local ret = {}
|
local ret = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue