Merge pull request #78 from rootcoma/fix_click_area
Fix the bounds checking for area_get.
This commit is contained in:
commit
e9cdee9701
2
bar.c
2
bar.c
|
@ -224,7 +224,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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user