From 3668c9d86c866ec25048eb136701681c49bea62a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 1 Feb 2023 15:00:42 +0100 Subject: examples, tinywl: use "default" cursor instead of "left_ptr" "left_ptr" is the X11 name, "default" is the cursor spec name. --- examples/layer-shell.c | 4 ++-- examples/multi-pointer.c | 4 ++-- examples/pointer.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'examples') diff --git a/examples/layer-shell.c b/examples/layer-shell.c index f2e0aaa7..5f86be8d 100644 --- a/examples/layer-shell.c +++ b/examples/layer-shell.c @@ -615,14 +615,14 @@ int main(int argc, char **argv) { struct wl_cursor *cursor = wl_cursor_theme_get_cursor(cursor_theme, "crosshair"); if (cursor == NULL) { - cursor = wl_cursor_theme_get_cursor(cursor_theme, "left_ptr"); + cursor = wl_cursor_theme_get_cursor(cursor_theme, "default"); } assert(cursor); cursor_image = cursor->images[0]; cursor = wl_cursor_theme_get_cursor(cursor_theme, "tcross"); if (cursor == NULL) { - cursor = wl_cursor_theme_get_cursor(cursor_theme, "left_ptr"); + cursor = wl_cursor_theme_get_cursor(cursor_theme, "default"); } assert(cursor); popup_cursor_image = cursor->images[0]; diff --git a/examples/multi-pointer.c b/examples/multi-pointer.c index 920ee0fc..ba742e19 100644 --- a/examples/multi-pointer.c +++ b/examples/multi-pointer.c @@ -298,9 +298,9 @@ int main(int argc, char *argv[]) { wlr_log(WLR_ERROR, "Failed to load cursor theme"); return 1; } - state.xcursor = wlr_xcursor_theme_get_cursor(theme, "left_ptr"); + state.xcursor = wlr_xcursor_theme_get_cursor(theme, "default"); if (!state.xcursor) { - wlr_log(WLR_ERROR, "Failed to load left_ptr cursor"); + wlr_log(WLR_ERROR, "Failed to load default cursor"); return 1; } diff --git a/examples/pointer.c b/examples/pointer.c index db85b13a..cf096fd5 100644 --- a/examples/pointer.c +++ b/examples/pointer.c @@ -266,7 +266,7 @@ static void new_output_notify(struct wl_listener *listener, void *data) { 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, "left_ptr", + wlr_xcursor_manager_set_cursor_image(sample->xcursor_manager, "default", sample->cursor); struct wlr_output_mode *mode = wlr_output_preferred_mode(output); @@ -388,11 +388,11 @@ int main(int argc, char *argv[]) { state.xcursor_manager = wlr_xcursor_manager_create("default", 24); if (!state.xcursor_manager) { - wlr_log(WLR_ERROR, "Failed to load left_ptr cursor"); + wlr_log(WLR_ERROR, "Failed to load default cursor"); return 1; } - wlr_xcursor_manager_set_cursor_image(state.xcursor_manager, "left_ptr", + wlr_xcursor_manager_set_cursor_image(state.xcursor_manager, "default", state.cursor); clock_gettime(CLOCK_MONOTONIC, &state.last_frame); -- cgit v1.2.3