Lines Matching refs:xwl_cursor
99 clear_cursor_frame_callback(struct xwl_cursor *xwl_cursor) in clear_cursor_frame_callback() argument
101 if (xwl_cursor->frame_cb) { in clear_cursor_frame_callback()
102 wl_callback_destroy (xwl_cursor->frame_cb); in clear_cursor_frame_callback()
103 xwl_cursor->frame_cb = NULL; in clear_cursor_frame_callback()
112 struct xwl_cursor *xwl_cursor = data; in frame_callback() local
114 clear_cursor_frame_callback(xwl_cursor); in frame_callback()
115 if (xwl_cursor->needs_update) { in frame_callback()
116 xwl_cursor->needs_update = FALSE; in frame_callback()
117 xwl_cursor->update_proc(xwl_cursor); in frame_callback()
128 struct xwl_cursor *xwl_cursor = &xwl_seat->cursor; in xwl_seat_set_cursor() local
139 clear_cursor_frame_callback(xwl_cursor); in xwl_seat_set_cursor()
140 xwl_cursor->needs_update = FALSE; in xwl_seat_set_cursor()
144 if (xwl_cursor->frame_cb) { in xwl_seat_set_cursor()
145 xwl_cursor->needs_update = TRUE; in xwl_seat_set_cursor()
163 xwl_cursor->surface, in xwl_seat_set_cursor()
166 wl_surface_attach(xwl_cursor->surface, in xwl_seat_set_cursor()
168 wl_surface_damage(xwl_cursor->surface, 0, 0, in xwl_seat_set_cursor()
172 xwl_cursor->frame_cb = wl_surface_frame(xwl_cursor->surface); in xwl_seat_set_cursor()
173 wl_callback_add_listener(xwl_cursor->frame_cb, &frame_listener, xwl_cursor); in xwl_seat_set_cursor()
175 wl_surface_commit(xwl_cursor->surface); in xwl_seat_set_cursor()
182 struct xwl_cursor *xwl_cursor = &xwl_tablet_tool->cursor; in xwl_tablet_tool_set_cursor() local
191 clear_cursor_frame_callback(xwl_cursor); in xwl_tablet_tool_set_cursor()
192 xwl_cursor->needs_update = FALSE; in xwl_tablet_tool_set_cursor()
196 if (xwl_cursor->frame_cb) { in xwl_tablet_tool_set_cursor()
197 xwl_cursor->needs_update = TRUE; in xwl_tablet_tool_set_cursor()
215 xwl_cursor->surface, in xwl_tablet_tool_set_cursor()
218 wl_surface_attach(xwl_cursor->surface, in xwl_tablet_tool_set_cursor()
220 wl_surface_damage(xwl_cursor->surface, 0, 0, in xwl_tablet_tool_set_cursor()
224 xwl_cursor->frame_cb = wl_surface_frame(xwl_cursor->surface); in xwl_tablet_tool_set_cursor()
225 wl_callback_add_listener(xwl_cursor->frame_cb, &frame_listener, xwl_cursor); in xwl_tablet_tool_set_cursor()
227 wl_surface_commit(xwl_cursor->surface); in xwl_tablet_tool_set_cursor()