Implement wxSetCusorEvent better than before.
This also makes wxAUI work nicely. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
dcc40ba510
commit
ec1e0c6634
@ -353,7 +353,7 @@ protected:
|
||||
|
||||
// set the current cursor for all GdkWindows making part of this widget
|
||||
// (see GTKGetWindow)
|
||||
//
|
||||
public:
|
||||
// should be called from OnInternalIdle() if it's overridden
|
||||
void GTKUpdateCursor();
|
||||
|
||||
|
@ -1729,6 +1729,8 @@ gtk_window_motion_notify_callback( GtkWidget *widget,
|
||||
if (win->GetEventHandler()->ProcessEvent( cevent ))
|
||||
{
|
||||
// Rewrite cursor handling here (away from idle).
|
||||
win->SetCursor( cevent.GetCursor() );
|
||||
win->GTKUpdateCursor();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1944,6 +1946,8 @@ gtk_window_enter_callback( GtkWidget *widget,
|
||||
if (win->GetEventHandler()->ProcessEvent( cevent ))
|
||||
{
|
||||
// Rewrite cursor handling here (away from idle).
|
||||
win->SetCursor( cevent.GetCursor() );
|
||||
win->GTKUpdateCursor();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user