From: Robert Roebling Date: Wed, 22 Feb 2006 23:36:32 +0000 (+0000) Subject: Emit wxSetCursorEvent before mouse move and X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/38f69be155900b35901494b8fde3410246edfac6?ds=inline 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 --- diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index d98386fe20..4dbeb34498 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -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");