summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library.c7
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;