When a popupmenu is currently active on the screen, it shouldn't
remove mouse click messages that don't belong to it from the queue.
diff --git a/controls/menu.c b/controls/menu.c
index 8caf80a..114964b 100644
--- a/controls/menu.c
+++ b/controls/menu.c
@@ -2636,7 +2636,10 @@
/* fall through */
case WM_LBUTTONDBLCLK:
case WM_LBUTTONDOWN:
- fRemove = fEndMenu = !MENU_ButtonDown( &mt, hmenu, wFlags );
+ /* If the message belongs to the menu, removes it from the queue */
+ /* Else, end menu tracking */
+ fRemove = MENU_ButtonDown( &mt, hmenu, wFlags );
+ fEndMenu = !fRemove;
break;
case WM_RBUTTONUP: