diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-11 05:14:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-11 05:14:40 -0500 |
commit | 301850ec5d1a65aed87734583ed0868694f1913a (patch) | |
tree | b5cc088bb7e6e97e1a9c43ee6d1a955b95bdd27d /rootston/cursor.c | |
parent | 8ccb5b0b6674999f83775cd583cc610a2e03fb54 (diff) | |
parent | 925497fbeaed9a2eb8420490e6cdfa4fd162e79e (diff) |
Merge pull request #480 from emersion/default-cursor-image
Set default cursor image in rootston
Diffstat (limited to 'rootston/cursor.c')
-rw-r--r-- | rootston/cursor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rootston/cursor.c b/rootston/cursor.c index d38e40a1..95e8ce2a 100644 --- a/rootston/cursor.c +++ b/rootston/cursor.c @@ -22,6 +22,7 @@ struct roots_cursor *roots_cursor_create(struct roots_seat *seat) { free(cursor); return NULL; } + cursor->default_xcursor = ROOTS_XCURSOR_DEFAULT; return cursor; } @@ -48,7 +49,7 @@ static void roots_cursor_update_position(struct roots_cursor *cursor, } if (set_compositor_cursor) { wlr_xcursor_manager_set_cursor_image(cursor->xcursor_manager, - ROOTS_XCURSOR_DEFAULT, cursor->cursor); + cursor->default_xcursor, cursor->cursor); cursor->cursor_client = NULL; } if (view) { |