diff options
author | emersion <contact@emersion.fr> | 2017-11-11 18:42:14 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-11-11 18:42:14 +0100 |
commit | aaf069188319f42bc214f4317c37d533aea64518 (patch) | |
tree | 2cf0d7756fbba213389fbb1222ee9e183f3d093e /rootston/output.c | |
parent | ac1573b0e7b0b08413e115bb88682ebedbfbf39a (diff) |
rootston: add roots_xcursor_theme
roots_xcursor_theme loads multiple wlr_xcursor_theme at different scales.
Diffstat (limited to 'rootston/output.c')
-rw-r--r-- | rootston/output.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rootston/output.c b/rootston/output.c index d853c45f..943e14c0 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -11,6 +11,7 @@ #include "rootston/server.h" #include "rootston/desktop.h" #include "rootston/config.h" +#include "rootston/xcursor.h" static inline int64_t timespec_to_msec(const struct timespec *a) { return (int64_t)a->tv_sec * 1000 + a->tv_nsec / 1000000; @@ -240,6 +241,11 @@ void output_add_notify(struct wl_listener *listener, void *data) { wlr_output_layout_add_auto(desktop->layout, wlr_output); } + if (roots_xcursor_theme_load(desktop->xcursor_theme, wlr_output->scale)) { + wlr_log(L_ERROR, "Cannot load xcursor theme with scale %d", + wlr_output->scale); + } + struct roots_seat *seat; wl_list_for_each(seat, &input->seats, link) { roots_seat_configure_cursor(seat); |