~brandontschaefer/mir/deprecate-set-event-handler

« back to all changes in this revision

Viewing changes to examples/cursors_demo_client.c

* Merge parent, fix conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 
47
47
    size_t num_cursors = sizeof(cursors)/sizeof(*cursors);
48
48
    size_t real_index = cursor_index % num_cursors;
49
 
    MirSurfaceSpec* spec = mir_connection_create_spec_for_changes(connection);
50
 
    mir_surface_spec_set_cursor_name(spec, cursors[real_index]);
51
 
    mir_surface_apply_spec(surface, spec);
52
 
    mir_surface_spec_release(spec);
 
49
    MirWindowSpec* spec = mir_create_window_spec(connection);
 
50
    mir_window_spec_set_cursor_name(spec, cursors[real_index]);
 
51
    mir_window_apply_spec(surface, spec);
 
52
    mir_window_spec_release(spec);
53
53
}
54
54
 
55
55
int main(int argc, char *argv[])
66
66
    unsigned int cursor_index = 0;
67
67
    while (mir_eglapp_running())
68
68
    {
69
 
        configure_cursor(mir_eglapp_native_connection(), mir_eglapp_native_surface(), cursor_index++);
 
69
        configure_cursor(mir_eglapp_native_connection(), mir_eglapp_native_window(), cursor_index++);
70
70
        usleep(100000);
71
71
    }
72
72