Merge branch 'stachelbeere1248/patched/cursortheme' into stachelbeere1248/fullpatched
This commit is contained in:
commit
1e2a36dda0
2 changed files with 8 additions and 2 deletions
|
@ -14,6 +14,8 @@ static const float focuscolor[] = COLOR(0x005577ff);
|
||||||
static const float urgentcolor[] = COLOR(0xff0000ff);
|
static const float urgentcolor[] = COLOR(0xff0000ff);
|
||||||
/* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */
|
/* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */
|
||||||
static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You can also use glsl colors */
|
static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You can also use glsl colors */
|
||||||
|
static const char *cursor_theme = NULL;
|
||||||
|
static const char cursor_size[] = "24"; /* Make sure it's a valid integer, otherwise things will break */
|
||||||
|
|
||||||
/* tagging - TAGCOUNT must be no greater than 31 */
|
/* tagging - TAGCOUNT must be no greater than 31 */
|
||||||
#define TAGCOUNT (9)
|
#define TAGCOUNT (9)
|
||||||
|
|
8
dwl.c
8
dwl.c
|
@ -2867,8 +2867,12 @@ setup(void)
|
||||||
* Xcursor themes to source cursor images from and makes sure that cursor
|
* Xcursor themes to source cursor images from and makes sure that cursor
|
||||||
* images are available at all scale factors on the screen (necessary for
|
* images are available at all scale factors on the screen (necessary for
|
||||||
* HiDPI support). Scaled cursors will be loaded with each output. */
|
* HiDPI support). Scaled cursors will be loaded with each output. */
|
||||||
cursor_mgr = wlr_xcursor_manager_create(NULL, 24);
|
cursor_mgr = wlr_xcursor_manager_create(cursor_theme, atoi(cursor_size));
|
||||||
setenv("XCURSOR_SIZE", "24", 1);
|
setenv("XCURSOR_SIZE", cursor_size, 1);
|
||||||
|
if (cursor_theme)
|
||||||
|
setenv("XCURSOR_THEME", cursor_theme, 1);
|
||||||
|
else
|
||||||
|
unsetenv("XCURSOR_THEME");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* wlr_cursor *only* displays an image on screen. It does not move around
|
* wlr_cursor *only* displays an image on screen. It does not move around
|
||||||
|
|
Loading…
Add table
Reference in a new issue