]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed sending events by submenus.
authorWłodzimierz Skiba <abx@abx.art.pl>
Mon, 23 Aug 2004 15:45:47 +0000 (15:45 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Mon, 23 Aug 2004 15:45:47 +0000 (15:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/menu.cpp

index eb4ea7cf8f2838df9ca533667a5f23f9c8058a6d..ac1b1a3e9176cd1f370e6d587f82f2298bb46662 100644 (file)
@@ -2411,6 +2411,8 @@ void wxMenuBar::PopupCurrentMenu(bool selectFirst)
             // item, not to the right of it
             wxRect rectItem = GetItemRect(m_current);
 
+            m_menuShown->SetInvokingWindow(m_frameLast);
+
             m_menuShown->Popup(ClientToScreen(rectItem.GetPosition()),
                                wxSize(0, rectItem.GetHeight()),
                                selectFirst);