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/seat.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/seat.c')
-rw-r--r-- | rootston/seat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rootston/seat.c b/rootston/seat.c index cb245ca8..8a581157 100644 --- a/rootston/seat.c +++ b/rootston/seat.c @@ -442,6 +442,9 @@ void roots_seat_configure_xcursor(struct roots_seat *seat) { roots_config_get_cursor(seat->input->config, seat->seat->name); if (cc != NULL) { cursor_theme = cc->theme; + if (cc->default_image != NULL) { + seat->cursor->default_xcursor = cc->default_image; + } } if (!seat->cursor->xcursor_manager) { @@ -465,7 +468,7 @@ void roots_seat_configure_xcursor(struct roots_seat *seat) { } wlr_xcursor_manager_set_cursor_image(seat->cursor->xcursor_manager, - ROOTS_XCURSOR_DEFAULT, seat->cursor->cursor); + seat->cursor->default_xcursor, seat->cursor->cursor); wlr_cursor_warp(seat->cursor->cursor, NULL, seat->cursor->cursor->x, seat->cursor->cursor->y); } |