From 0e9df79182ee47fb7efab83ef131a84bcacfcb50 Mon Sep 17 00:00:00 2001 From: lkn Date: Sun, 7 Jun 2026 16:46:48 +0200 Subject: [PATCH] WME_ENTER: only set insideMenu for real menuView enter, not main button --- WINGs/wpopupbutton.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/WINGs/wpopupbutton.c b/WINGs/wpopupbutton.c index f3613c3..16d9d1c 100644 --- a/WINGs/wpopupbutton.c +++ b/WINGs/wpopupbutton.c @@ -651,7 +651,10 @@ static void handleActionEvents(WMEvent * event, void *data) case WME_ENTER: wwarning("popup: ENTER window=0x%lx insideMenu=%d", (unsigned long)event->window, bPtr->flags.insideMenu); - bPtr->flags.insideMenu = 1; + /* Only set insideMenu on enter to the menu view itself; enter + * on the main button is not a menu interaction. */ + if (event->window == bPtr->menuView->window) + bPtr->flags.insideMenu = 1; break; case WME_MOTION: