Rename request_set_cursor to seat_request_set_cursor

This commit is contained in:
buffet 2019-12-29 13:03:54 +00:00
parent 7fd2f1fb29
commit dc6cf64892
2 changed files with 5 additions and 5 deletions

View file

@ -20,7 +20,7 @@ struct kiwmi_cursor {
struct wl_listener cursor_button;
struct wl_listener cursor_axis;
struct wl_listener cursor_frame;
struct wl_listener request_set_cursor;
struct wl_listener seat_request_set_cursor;
};
struct kiwmi_cursor *cursor_create(

View file

@ -140,10 +140,10 @@ cursor_frame_notify(struct wl_listener *listener, void *UNUSED(data))
}
static void
request_set_cursor_notify(struct wl_listener *listener, void *data)
seat_request_set_cursor_notify(struct wl_listener *listener, void *data)
{
struct kiwmi_cursor *cursor =
wl_container_of(listener, cursor, request_set_cursor);
wl_container_of(listener, cursor, seat_request_set_cursor);
struct wlr_seat_pointer_request_set_cursor_event *event = data;
struct wlr_surface *focused_surface =
@ -207,10 +207,10 @@ cursor_create(
cursor->cursor_frame.notify = cursor_frame_notify;
wl_signal_add(&cursor->cursor->events.frame, &cursor->cursor_frame);
cursor->request_set_cursor.notify = request_set_cursor_notify;
cursor->seat_request_set_cursor.notify = seat_request_set_cursor_notify;
wl_signal_add(
&server->input.seat->events.request_set_cursor,
&cursor->request_set_cursor);
&cursor->seat_request_set_cursor);
return cursor;
}