mouse: respect border width in get_current_widgets (#2990)

This commit is contained in:
Mahe 2020-02-16 01:27:33 +01:00 committed by GitHub
parent 59b31e74b3
commit 6779a61b40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -126,8 +126,9 @@ function mouse.object.get_current_widgets()
local w = mouse.object.get_current_wibox()
if w then
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 = {}