aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
authorSorcus <sorcus@inwebse.com>2018-10-28 10:58:13 +0000
committerSorcus <sorcus@inwebse.com>2018-10-28 10:58:13 +0000
commit7c540aa9fe610b987fbbaf71703172710829c27a (patch)
tree78751e338e8032670d7cf357c16b32573c1ef8c9 /rootston/desktop.c
parentfe247e20a3884dd44ef26512716efd67f35c862b (diff)
Fix "variable ‘cursor_default’ set but not used"
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r--rootston/desktop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index 06b785ad..69c71867 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -882,14 +882,18 @@ struct roots_desktop *desktop_create(struct roots_server *server,
desktop->tablet_v2 = wlr_tablet_v2_create(server->wl_display);
const char *cursor_theme = NULL;
+#ifdef WLR_HAS_XWAYLAND
const char *cursor_default = ROOTS_XCURSOR_DEFAULT;
+#endif
struct roots_cursor_config *cc =
roots_config_get_cursor(config, ROOTS_CONFIG_DEFAULT_SEAT_NAME);
if (cc != NULL) {
cursor_theme = cc->theme;
+#ifdef WLR_HAS_XWAYLAND
if (cc->default_image != NULL) {
cursor_default = cc->default_image;
}
+#endif
}
char cursor_size_fmt[16];