X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fbfb8bcc3fa17e079d4219655b173f8ed2ccc65a..18fa735d20b4c66db72b51d60b82a2b3f2cda763:/src/motif/window.cpp diff --git a/src/motif/window.cpp b/src/motif/window.cpp index 837bedda45..2f588ebfef 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -1089,7 +1089,7 @@ bool wxWindow::DoPopupMenu(wxMenu *menu, int x, int y) } menu->SetId(1); /* Mark as popped-up */ - menu->CreateMenu(NULL, widget, menu); + menu->CreateMenu(NULL, widget, menu, 0); menu->SetInvokingWindow(this); menu->UpdateUI(); @@ -2519,9 +2519,10 @@ wxWindow *wxWindowBase::GetCapture() // Find the wxWindow at the current mouse position, returning the mouse // position. -wxWindow* wxFindWindowAtPointer(const wxPoint& pt) +wxWindow* wxFindWindowAtPointer(wxPoint& pt) { - return wxFindWindowAtPoint(wxGetMousePosition()); + pt = wxGetMousePosition(); + return wxFindWindowAtPoint(pt); } // Get the current mouse position.