From dc0c395d837af5097f3fb52bdc37a1faaa33869b Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 4 Dec 2007 13:38:45 +0000 Subject: [PATCH] Context menu event from keyboard records the mouse position, not -1, -1, in line with wxMSW git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index d1cf0511db..fa22ff516e 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1659,7 +1659,7 @@ window_scroll_event(GtkWidget*, GdkEventScroll* gdk_event, wxWindow* win) static gboolean wxgtk_window_popup_menu_callback(GtkWidget*, wxWindowGTK* win) { - wxContextMenuEvent event(wxEVT_CONTEXT_MENU, win->GetId(), wxPoint(-1, -1)); + wxContextMenuEvent event(wxEVT_CONTEXT_MENU, win->GetId(), wxGetMousePosition()); event.SetEventObject(win); return win->GTKProcessEvent(event); } -- 2.45.2