fix drawer right-click menus not responding to mouse input
findMenu() was not searching drawer menus, so pointer motion over a drawer menu returned NULL causing the event loop to ignore input. Add iteration over scr->drawers to findMenu().
This commit is contained in:
parent
b6ad1df42e
commit
074e9a7011
|
|
@ -1157,6 +1157,11 @@ static WMenu *findMenu(WScreen * scr, int *x_ret, int *y_ret)
|
|||
findMenuWalk(scr->clip_menu, x, y, &deepest, &dx, &dy);
|
||||
findMenuWalk(scr->dock_pos_menu, x, y, &deepest, &dx, &dy);
|
||||
findMenuWalk(scr->icon_menu, x, y, &deepest, &dx, &dy);
|
||||
{
|
||||
WDrawerChain *dc;
|
||||
for (dc = scr->drawers; dc != NULL; dc = dc->next)
|
||||
findMenuWalk(dc->adrawer->menu, x, y, &deepest, &dx, &dy);
|
||||
}
|
||||
|
||||
if (deepest) {
|
||||
*x_ret = dx;
|
||||
|
|
|
|||
Loading…
Reference in New Issue