--- /usr/src/debug/x11-libs/libXcursor-1.1.14/libXcursor-1.1.14/src/library.c	2013-05-30 08:24:28.000000000 +0200
+++ src/library.c	2017-01-22 13:15:50.860537671 +0100
@@ -259,8 +259,10 @@
     /*
      * Recurse to scan inherited themes
      */
-    for (i = inherits; i && f == NULL; i = _XcursorNextPath (i))
-	f = XcursorScanTheme (i, name);
+    for (i = inherits; i && f == NULL; i = _XcursorNextPath (i)) {
+		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;