xwayland: Honour the XCURSOR_THEME environment variable
Toy toolkit apps already do this since commit 807cd2e589
Co-authored-by: Steve Pronovost <spronovo@microsoft.com>
Co-authored-by: Brenton DeGeer <brdegeer@microsoft.com>
Signed-off-by: Hideyuki Nagase <hideyukn@microsoft.com>
Signed-off-by: Steve Pronovost <spronovo@microsoft.com>
Signed-off-by: Brenton DeGeer <brdegeer@microsoft.com>
This commit is contained in:
parent
e99ed2ad36
commit
8aa1c30bf1
|
@ -346,6 +346,7 @@ xcb_cursor_library_load_cursor(struct weston_wm *wm, const char *file)
|
|||
xcb_cursor_t cursor;
|
||||
XcursorImages *images;
|
||||
char *v = NULL;
|
||||
char *theme;
|
||||
int size = 0;
|
||||
|
||||
if (!file)
|
||||
|
@ -358,7 +359,9 @@ xcb_cursor_library_load_cursor(struct weston_wm *wm, const char *file)
|
|||
if (!size)
|
||||
size = 32;
|
||||
|
||||
images = XcursorLibraryLoadImages (file, NULL, size);
|
||||
theme = getenv("XCURSOR_THEME");
|
||||
|
||||
images = XcursorLibraryLoadImages(file, theme, size);
|
||||
if (!images)
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue