mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
examples, tinywl: use "default" cursor instead of "left_ptr"
"left_ptr" is the X11 name, "default" is the cursor spec name.
This commit is contained in:
parent
4097eb20f3
commit
3668c9d86c
5 changed files with 9 additions and 9 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue