From add46e1ebe3db518977faed17dd40a2a87aeae7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 26 Jul 2021 19:10:11 +0200 Subject: Extend task button hover area to screen edge --- src/tray.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/tray.c b/src/tray.c index c6c8862..398373a 100644 --- a/src/tray.c +++ b/src/tray.c @@ -709,8 +709,8 @@ HandleTrayMotionNotify(TrayType *tp, const XMotionEvent *event) for(cp = tp->components; cp; cp = cp->next) { width = cp->width; height = cp->height; - if(event->x >= xoffset && event->x < xoffset + width) { - if(event->y >= yoffset && event->y < yoffset + height) { + if(event->x >= xoffset && event->x <= xoffset + width) { + if(event->y >= yoffset && event->y <= yoffset+height) { if(cp->ProcessMotionEvent) { x = event->x - xoffset; y = event->y - yoffset; -- cgit v1.2.3