mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-04-12 08:21:20 -04:00
Use XCURSOR_SIZE and XCURSOR_THEME when creating the cursor manager
This commit is contained in:
parent
94904c714d
commit
3143115ec0
1 changed files with 4 additions and 1 deletions
5
seat.c
5
seat.c
|
|
@ -836,7 +836,10 @@ seat_create(struct cg_server *server, struct wlr_backend *backend)
|
|||
wlr_cursor_attach_output_layout(seat->cursor, server->output_layout);
|
||||
|
||||
if (!seat->xcursor_manager) {
|
||||
seat->xcursor_manager = wlr_xcursor_manager_create(NULL, XCURSOR_SIZE);
|
||||
const char *theme = getenv("XCURSOR_THEME");
|
||||
const char *size_ascii = getenv("XCURSOR_SIZE");
|
||||
int32_t size = size_ascii ? atoi(size_ascii) : XCURSOR_SIZE;
|
||||
seat->xcursor_manager = wlr_xcursor_manager_create(theme, size);
|
||||
if (!seat->xcursor_manager) {
|
||||
wlr_log(WLR_ERROR, "Cannot create XCursor manager");
|
||||
wlr_cursor_destroy(seat->cursor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue