Fix handling of GTK cursor events to set window event object and id.
This commit is contained in:
@@ -1795,6 +1795,9 @@ static void SendSetCursorEvent(wxWindowGTK* win, int x, int y)
|
|||||||
for ( ;; )
|
for ( ;; )
|
||||||
{
|
{
|
||||||
wxSetCursorEvent event(posClient.x, posClient.y);
|
wxSetCursorEvent event(posClient.x, posClient.y);
|
||||||
|
event.SetId(win->GetId());
|
||||||
|
event.SetEventObject(win);
|
||||||
|
|
||||||
if (w->GTKProcessEvent(event))
|
if (w->GTKProcessEvent(event))
|
||||||
{
|
{
|
||||||
win->GTKUpdateCursor(false, false, &event.GetCursor());
|
win->GTKUpdateCursor(false, false, &event.GetCursor());
|
||||||
|
Reference in New Issue
Block a user