Emit wxSetCursorEvent before mouse move and
mouse enter. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9b0d12e94f
commit
38f69be155
@ -1739,6 +1739,15 @@ static gint gtk_window_motion_notify_callback( GtkWidget *widget,
|
||||
win = FindWindowForMouseEvent(win, event.m_x, event.m_y);
|
||||
}
|
||||
|
||||
if ( !g_captureWindow )
|
||||
{
|
||||
wxSetCursorEvent cevent( event.m_x, event.m_y );
|
||||
if (win->GetEventHandler()->ProcessEvent( cevent ))
|
||||
{
|
||||
// Rewrite cursor handling here (away from idle).
|
||||
}
|
||||
}
|
||||
|
||||
if (win->GetEventHandler()->ProcessEvent( event ))
|
||||
{
|
||||
g_signal_stop_emission_by_name (widget, "motion_notify_event");
|
||||
@ -1996,6 +2005,15 @@ gtk_window_enter_callback( GtkWidget *widget,
|
||||
event.m_x = x + pt.x;
|
||||
event.m_y = y + pt.y;
|
||||
|
||||
if ( !g_captureWindow )
|
||||
{
|
||||
wxSetCursorEvent cevent( event.m_x, event.m_y );
|
||||
if (win->GetEventHandler()->ProcessEvent( cevent ))
|
||||
{
|
||||
// Rewrite cursor handling here (away from idle).
|
||||
}
|
||||
}
|
||||
|
||||
if (win->GetEventHandler()->ProcessEvent( event ))
|
||||
{
|
||||
g_signal_stop_emission_by_name (widget, "enter_notify_event");
|
||||
|
Loading…
Reference in New Issue
Block a user