From ac9d38d811747d38bcd1747fb95878b03cdf24f0 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 4 Dec 2007 21:52:06 +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/trunk@50476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index fa22ff516e..5313dd72a0 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(), wxGetMousePosition()); + wxContextMenuEvent event(wxEVT_CONTEXT_MENU, win->GetId(), wxPoint(-1, -1)); event.SetEventObject(win); return win->GTKProcessEvent(event); } @@ -2230,7 +2230,7 @@ bool wxWindowGTK::Create( wxWindow *parent, wxBorder border = GetBorder(style); style &= ~wxBORDER_MASK; style |= border; - + if (!PreCreation( parent, pos, size ) || !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name )) { -- 2.45.2