aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;