diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-26 19:10:11 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-26 19:10:11 +0200 |
commit | add46e1ebe3db518977faed17dd40a2a87aeae7b (patch) | |
tree | b9fc7e13eb2fd4ffe9eb25991cd56903b0ba5005 /src | |
parent | b9f4874b77aa55fcc956e10b75a3616fb60d31d3 (diff) | |
download | jwm-add46e1ebe3db518977faed17dd40a2a87aeae7b.tar.gz |
Extend task button hover area to screen edge
Diffstat (limited to 'src')
-rw-r--r-- | src/tray.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |