From bbde7abce9b75b04c824f34b34897b4c6c923d2f Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 4 Dec 2007 21:51:33 +0000 Subject: [PATCH] Reverted mouse position change - wxMSW does send (-1, -1) for keyboard context menu access git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 2 -- src/gtk/window.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index d97e915390..ca2aed4a06 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -106,8 +106,6 @@ All (Unix): wxGTK: -- Context menus invoked from the keyboard now show at the current mouse - position. 2.8.7 diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 5b50919145..48f481aa9a 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1809,7 +1809,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(), wxGetMousePosition()); + wxContextMenuEvent event(wxEVT_CONTEXT_MENU, win->GetId(), wxPoint(-1, -1)); event.SetEventObject(win); return win->GTKProcessEvent(event); }