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:
lkn 2026-06-23 13:01:09 +02:00
parent b6ad1df42e
commit 074e9a7011
1 changed files with 5 additions and 0 deletions

View File

@ -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;