rootston: add roots_xcursor_theme

roots_xcursor_theme loads multiple wlr_xcursor_theme at different scales.
This commit is contained in:
emersion 2017-11-11 18:42:14 +01:00
parent ac1573b0e7
commit aaf0691883
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
8 changed files with 170 additions and 77 deletions

View file

@ -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);