mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-29 05:40:20 -04:00
Actually use the user's preferred Xcursor theme/size
This commit is contained in:
parent
40dfbad423
commit
810414caba
1 changed files with 2 additions and 1 deletions
|
|
@ -164,7 +164,8 @@ struct wb_cursor *wb_cursor_create(struct wb_server *server) {
|
|||
cursor->cursor = wlr_cursor_create();
|
||||
cursor->server = server;
|
||||
|
||||
cursor->xcursor_manager = wlr_xcursor_manager_create(NULL, 24);
|
||||
const char *xcursor_size = getenv("XCURSOR_SIZE");
|
||||
cursor->xcursor_manager = wlr_xcursor_manager_create(getenv("XCURSOR_THEME"), xcursor_size ? atoi(xcursor_size) : 24);
|
||||
wlr_xcursor_manager_load(cursor->xcursor_manager, 1);
|
||||
|
||||
cursor->cursor_motion.notify = handle_cursor_motion;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue