From bbef21785b3b90fadacb9729c0b8e617152c84c7 Mon Sep 17 00:00:00 2001 From: lkn Date: Sun, 7 Jun 2026 16:03:50 +0200 Subject: [PATCH] popup: all popDownMenu calls in BUTTON_RELEASE now guarded by menuView/insideMenu check --- WINGs/wpopupbutton.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/WINGs/wpopupbutton.c b/WINGs/wpopupbutton.c index b66addf..35d12c2 100644 --- a/WINGs/wpopupbutton.c +++ b/WINGs/wpopupbutton.c @@ -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; }