summaryrefslogtreecommitdiff
path: root/tests/cocoa/test_cursor.m
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cocoa/test_cursor.m')
-rw-r--r--tests/cocoa/test_cursor.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cocoa/test_cursor.m b/tests/cocoa/test_cursor.m
index aaca815..4054d59 100644
--- a/tests/cocoa/test_cursor.m
+++ b/tests/cocoa/test_cursor.m
@@ -37,10 +37,10 @@ int main(void)
[view mouseMoved:motion];
[view cursorUpdate:cursor];
assert([NSCursor currentCursor] == hidden);
- struct yasl_input_event event;
+ struct yasl_event event;
bool moved = false;
- while (yasl_surface_input_poll(surface, &event))
- if (event.kind == YASL_INPUT_MOUSE && event.mouse.kind == YASL_PTR_MOTION)
+ while (yasl_surface_poll_event(surface, &event))
+ if (event.type == YASL_EVENT_POINTER_MOTION)
moved = true;
assert(moved);