diff --git a/bar.c b/bar.c index 3fed67e..43b8007 100644 --- a/bar.c +++ b/bar.c @@ -212,7 +212,7 @@ area_t * area_get (xcb_window_t win, const int x) { for (int i = 0; i < astack.pos; i++) - if (astack.slot[i].window == win && x > astack.slot[i].begin && x < astack.slot[i].end) + if (astack.slot[i].window == win && x >= astack.slot[i].begin && x < astack.slot[i].end) return &astack.slot[i]; return NULL; }