diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-09 12:10:09 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-09 12:10:09 -0500 |
commit | b275d44bc3226fdd38ee1f983769697751af5740 (patch) | |
tree | 8cb9092aceb2ff295ad5bb84d534c4c97a25a7b0 /rootston/seat.c | |
parent | eb4e91f96d206ff05ac7f6bb1972bf48f45e5e5e (diff) |
rootston xcursor fixes
Diffstat (limited to 'rootston/seat.c')
-rw-r--r-- | rootston/seat.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/rootston/seat.c b/rootston/seat.c index 1fa09ad6..cb245ca8 100644 --- a/rootston/seat.c +++ b/rootston/seat.c @@ -444,12 +444,14 @@ void roots_seat_configure_xcursor(struct roots_seat *seat) { cursor_theme = cc->theme; } - seat->cursor->xcursor_manager = - wlr_xcursor_manager_create(cursor_theme, ROOTS_XCURSOR_SIZE); - if (seat->cursor->xcursor_manager == NULL) { - wlr_log(L_ERROR, "Cannot create XCursor manager for theme %s", - cursor_theme); - return; + if (!seat->cursor->xcursor_manager) { + seat->cursor->xcursor_manager = + wlr_xcursor_manager_create(cursor_theme, ROOTS_XCURSOR_SIZE); + if (seat->cursor->xcursor_manager == NULL) { + wlr_log(L_ERROR, "Cannot create XCursor manager for theme %s", + cursor_theme); + return; + } } struct roots_output *output; |