mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-16 06:59:44 -05:00
rootston: add roots_xcursor_theme
roots_xcursor_theme loads multiple wlr_xcursor_theme at different scales.
This commit is contained in:
parent
ac1573b0e7
commit
aaf0691883
8 changed files with 170 additions and 77 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue