projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Lots of release bugs fixed
[wxWidgets.git]
/
src
/
motif
/
window.cpp
diff --git
a/src/motif/window.cpp
b/src/motif/window.cpp
index b1fc9b524e0f86b6b2e910721a31bc27bcd2e656..207afc3ed056f31ce74a1d30f2b327fb8730f23e 100644
(file)
--- 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)
{
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
Widget widget = (Widget) GetMainWidget();
/* The menuId field seems to be usused, so we'll use it to