aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-26 19:10:11 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-26 19:10:11 +0200
commitadd46e1ebe3db518977faed17dd40a2a87aeae7b (patch)
treeb9fc7e13eb2fd4ffe9eb25991cd56903b0ba5005
parentb9f4874b77aa55fcc956e10b75a3616fb60d31d3 (diff)
downloadjwm-add46e1ebe3db518977faed17dd40a2a87aeae7b.tar.gz
Extend task button hover area to screen edge
-rw-r--r--src/tray.c4
1 files changed, 2 insertions, 2 deletions
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;