popup: all popDownMenu calls in BUTTON_RELEASE now guarded by menuView/insideMenu check

This commit is contained in:
lkn 2026-06-07 16:03:50 +02:00
parent 8c7b201823
commit bbef21785b
1 changed files with 3 additions and 1 deletions

View File

@ -757,7 +757,9 @@ static void handleActionEvents(WMEvent * event, void *data)
(*bPtr->action) (bPtr, bPtr->clientData);
}
}
if (bPtr->menuView->flags.mapped)
if (bPtr->menuView->flags.mapped
&& (event->window == bPtr->menuView->window
|| bPtr->flags.insideMenu))
popDownMenu(bPtr);
break;
}