ecore_cocoa: fix broken scrolling

Evas events recently changed, and involved the use
of the 'multi' field within a mouse mouve event.
It was used afterwards for mouse scrolling, but since
it was never set by ecore_cocoa, scrolling went
broken...

Fixes T3789
This commit is contained in:
Jean Guyomarc'h 2016-06-04 16:34:30 +02:00
parent 088f4af9e7
commit de5f293426
1 changed files with 4 additions and 0 deletions

View File

@ -278,6 +278,10 @@ static NSCursor *_cursors[__ECORE_COCOA_CURSOR_LAST];
ev->event_window = ev->window;
ev->modifiers = 0; /* FIXME: keep modifier around. */
ev->multi.device = 0;
ev->multi.x = ev->x;
ev->multi.y = ev->y;
ecore_event_add(ECORE_EVENT_MOUSE_MOVE, ev, NULL, NULL);
}