aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r--rootston/desktop.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index a2af5e95..3bc5e748 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -338,11 +338,18 @@ struct roots_desktop *desktop_create(struct roots_server *server,
desktop->server = server;
desktop->config = config;
- desktop->xcursor_manager = wlr_xcursor_manager_create(config->cursor.theme,
+ const char *cursor_theme = NULL;
+ struct roots_cursor_config *cc =
+ roots_config_get_cursor(config, ROOTS_CONFIG_DEFAULT_SEAT_NAME);
+ if (cc != NULL) {
+ cursor_theme = cc->theme;
+ }
+
+ desktop->xcursor_manager = wlr_xcursor_manager_create(cursor_theme,
ROOTS_XCURSOR_SIZE);
if (desktop->xcursor_manager == NULL) {
wlr_log(L_ERROR, "Cannot create XCursor manager for theme %s",
- config->cursor.theme);
+ cursor_theme);
wlr_list_free(desktop->views);
free(desktop);
return NULL;