Don't track the system menu for managed windows.

diff --git a/controls/menu.c b/controls/menu.c
index fdf7409..c0b59d4 100644
--- a/controls/menu.c
+++ b/controls/menu.c
@@ -3016,6 +3016,7 @@
     if (!hTrackMenu || IsIconic(hwnd) || vkey == VK_SPACE )
     {
         if (!(GetWindowLongA( hwnd, GWL_STYLE ) & WS_SYSMENU)) return;
+        if (GetWindowLongA( hwnd, GWL_EXSTYLE ) & WS_EX_MANAGED) return;
         hTrackMenu = get_win_sys_menu( hwnd );
         uItem = 0;
         wParam |= HTSYSMENU; /* prevent item lookup */