mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 04:45:58 +01:00
xcursor: fix crash when encountering cursor themes with circular dependencies
Port of https://cgit.freedesktop.org/xorg/lib/libXcursor/commit/src?id=f64a8cc1a65dcad4294e2988b402a34175019663
This commit is contained in:
parent
05bb440786
commit
e7fba556a8
1 changed files with 6 additions and 1 deletions
|
@ -839,7 +839,12 @@ XcursorScanTheme (const char *theme, const char *name)
|
|||
* Recurse to scan inherited themes
|
||||
*/
|
||||
for (i = inherits; i && f == NULL; i = _XcursorNextPath (i))
|
||||
f = XcursorScanTheme (i, name);
|
||||
{
|
||||
if (strcmp(i, theme) != 0)
|
||||
f = XcursorScanTheme (i, name);
|
||||
else
|
||||
printf("Not calling XcursorScanTheme because of circular dependency: %s. %s", i, name);
|
||||
}
|
||||
if (inherits != NULL)
|
||||
free (inherits);
|
||||
return f;
|
||||
|
|
Loading…
Reference in a new issue