WME_ENTER: only set insideMenu for real menuView enter, not main button
This commit is contained in:
parent
6b5b015cd8
commit
0e9df79182
|
|
@ -651,7 +651,10 @@ static void handleActionEvents(WMEvent * event, void *data)
|
||||||
case WME_ENTER:
|
case WME_ENTER:
|
||||||
wwarning("popup: ENTER window=0x%lx insideMenu=%d",
|
wwarning("popup: ENTER window=0x%lx insideMenu=%d",
|
||||||
(unsigned long)event->window, bPtr->flags.insideMenu);
|
(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;
|
break;
|
||||||
|
|
||||||
case WME_MOTION:
|
case WME_MOTION:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue