mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-10-29 23:20:57 +00:00
examples/pointer: use wlr_cursor_set_xcursor()
This commit is contained in:
parent
53b07b5b72
commit
9c2c906518
@ -275,10 +275,6 @@ static void new_output_notify(struct wl_listener *listener, void *data) {
|
||||
sample_output->destroy.notify = output_remove_notify;
|
||||
wlr_output_layout_add_auto(sample->layout, sample_output->output);
|
||||
|
||||
wlr_xcursor_manager_load(sample->xcursor_manager, output->scale);
|
||||
wlr_xcursor_manager_set_cursor_image(sample->xcursor_manager, "default",
|
||||
sample->cursor);
|
||||
|
||||
struct wlr_output_state state;
|
||||
wlr_output_state_init(&state);
|
||||
wlr_output_state_set_enabled(&state, true);
|
||||
@ -405,8 +401,7 @@ int main(int argc, char *argv[]) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
wlr_xcursor_manager_set_cursor_image(state.xcursor_manager, "default",
|
||||
state.cursor);
|
||||
wlr_cursor_set_xcursor(state.cursor, state.xcursor_manager, "default");
|
||||
|
||||
clock_gettime(CLOCK_MONOTONIC, &state.last_frame);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user