aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-06-23 20:08:11 +0200
committerAlexander Orzechowski <alex@ozal.ski>2023-06-30 17:24:44 +0000
commit9c2c9065181861aa09cd3f1f6b06fb6ac38e6bac (patch)
tree1a045df5cb4ad02ba1ad0fc3b505e4292155f20b
parent53b07b5b7279825d917cade677163ddb8ad5acee (diff)
examples/pointer: use wlr_cursor_set_xcursor()
-rw-r--r--examples/pointer.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/pointer.c b/examples/pointer.c
index f6ae30b4..86986503 100644
--- a/examples/pointer.c
+++ b/examples/pointer.c
@@ -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);