Fix handling of GTK cursor events to set window event object and id.

This commit is contained in:
Joao Matos
2020-11-24 02:07:46 +00:00
committed by paulcor
parent 433480f7d0
commit feebe8e763

View File

@@ -1795,6 +1795,9 @@ static void SendSetCursorEvent(wxWindowGTK* win, int x, int y)
for ( ;; )
{
wxSetCursorEvent event(posClient.x, posClient.y);
event.SetId(win->GetId());
event.SetEventObject(win);
if (w->GTKProcessEvent(event))
{
win->GTKUpdateCursor(false, false, &event.GetCursor());