diff options
-rw-r--r-- | src/tray.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -673,8 +673,8 @@ HandleTrayButtonPress(TrayType *tp, const XButtonEvent *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 - 1 && event->x <= xoffset + width) { + if(event->y >= yoffset && event->y <= yoffset+height) { if(cp->ProcessButtonEvent) { x = event->x - xoffset; y = event->y - yoffset; |