diff options
-rw-r--r-- | src/library.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/library.c b/src/library.c index fd040ce..c6062f7 100644 --- a/src/library.c +++ b/src/library.c @@ -260,7 +260,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; |