WME_ENTER: only set insideMenu for real menuView enter, not main button

This commit is contained in:
lkn 2026-06-07 16:46:48 +02:00
parent 6b5b015cd8
commit 0e9df79182
1 changed files with 4 additions and 1 deletions

View File

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