X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..cc8cc54f8308660af5730d8c3da5ba4710dc0dbb:/src/motif/window.cpp diff --git a/src/motif/window.cpp b/src/motif/window.cpp index b1fc9b524e..207afc3ed0 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -1075,6 +1075,12 @@ void wxWindow::DoSetToolTip(wxToolTip * WXUNUSED(tooltip)) bool wxWindow::DoPopupMenu(wxMenu *menu, int x, int y) { + if ( x == -1 && y == -1 ) + { + wxPoint mouse = ScreenToClient(wxGetMousePosition()); + x = mouse.x; y = mouse.y; + } + Widget widget = (Widget) GetMainWidget(); /* The menuId field seems to be usused, so we'll use it to