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
This commit is contained in:
@@ -1659,7 +1659,7 @@ window_scroll_event(GtkWidget*, GdkEventScroll* gdk_event, wxWindow* win)
|
|||||||
|
|
||||||
static gboolean wxgtk_window_popup_menu_callback(GtkWidget*, wxWindowGTK* 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);
|
event.SetEventObject(win);
|
||||||
return win->GTKProcessEvent(event);
|
return win->GTKProcessEvent(event);
|
||||||
}
|
}
|
||||||
@@ -2230,7 +2230,7 @@ bool wxWindowGTK::Create( wxWindow *parent,
|
|||||||
wxBorder border = GetBorder(style);
|
wxBorder border = GetBorder(style);
|
||||||
style &= ~wxBORDER_MASK;
|
style &= ~wxBORDER_MASK;
|
||||||
style |= border;
|
style |= border;
|
||||||
|
|
||||||
if (!PreCreation( parent, pos, size ) ||
|
if (!PreCreation( parent, pos, size ) ||
|
||||||
!CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
|
!CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user