Rename request_set_cursor to seat_request_set_cursor
This commit is contained in:
parent
7fd2f1fb29
commit
dc6cf64892
2 changed files with 5 additions and 5 deletions
|
@ -20,7 +20,7 @@ struct kiwmi_cursor {
|
||||||
struct wl_listener cursor_button;
|
struct wl_listener cursor_button;
|
||||||
struct wl_listener cursor_axis;
|
struct wl_listener cursor_axis;
|
||||||
struct wl_listener cursor_frame;
|
struct wl_listener cursor_frame;
|
||||||
struct wl_listener request_set_cursor;
|
struct wl_listener seat_request_set_cursor;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct kiwmi_cursor *cursor_create(
|
struct kiwmi_cursor *cursor_create(
|
||||||
|
|
|
@ -140,10 +140,10 @@ cursor_frame_notify(struct wl_listener *listener, void *UNUSED(data))
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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 =
|
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_seat_pointer_request_set_cursor_event *event = data;
|
||||||
|
|
||||||
struct wlr_surface *focused_surface =
|
struct wlr_surface *focused_surface =
|
||||||
|
@ -207,10 +207,10 @@ cursor_create(
|
||||||
cursor->cursor_frame.notify = cursor_frame_notify;
|
cursor->cursor_frame.notify = cursor_frame_notify;
|
||||||
wl_signal_add(&cursor->cursor->events.frame, &cursor->cursor_frame);
|
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(
|
wl_signal_add(
|
||||||
&server->input.seat->events.request_set_cursor,
|
&server->input.seat->events.request_set_cursor,
|
||||||
&cursor->request_set_cursor);
|
&cursor->seat_request_set_cursor);
|
||||||
|
|
||||||
return cursor;
|
return cursor;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue