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: