mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-11-24 06:59:53 -05:00
allow specify cursor theme and size
Co-authored-by: Leonardo Hernández Hernández <leohdz172@proton.me>
This commit is contained in:
parent
0eb873340b
commit
365f816432
2 changed files with 8 additions and 2 deletions
8
dwl.c
8
dwl.c
|
|
@ -2863,8 +2863,12 @@ setup(void)
|
|||
* Xcursor themes to source cursor images from and makes sure that cursor
|
||||
* images are available at all scale factors on the screen (necessary for
|
||||
* HiDPI support). Scaled cursors will be loaded with each output. */
|
||||
cursor_mgr = wlr_xcursor_manager_create(NULL, 24);
|
||||
setenv("XCURSOR_SIZE", "24", 1);
|
||||
cursor_mgr = wlr_xcursor_manager_create(cursortheme, atoi(cursorsize));
|
||||
setenv("XCURSOR_SIZE", cursorsize, 1);
|
||||
if (cursortheme)
|
||||
setenv("XCURSOR_THEME", cursortheme, 1);
|
||||
else
|
||||
unsetenv("XCURSOR_THEME");
|
||||
|
||||
/*
|
||||
* wlr_cursor *only* displays an image on screen. It does not move around
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue