File 0001-Do-not-open-cursor-theme-recursively-when-theme-inhe.patch of Package xcb-util-cursor
From 120ea7a2793de4dfcd54c613b12486f1d96b3638 Mon Sep 17 00:00:00 2001
From: Fushan Wen <qydwhotmail@gmail.com>
Date: Mon, 10 Feb 2025 22:46:49 +0800
Subject: [PATCH] Do not open cursor theme recursively when theme inherits
itself
---
cursor/load_cursor.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/cursor/load_cursor.c b/cursor/load_cursor.c
index c8d587b..6c741e5 100644
--- a/cursor/load_cursor.c
+++ b/cursor/load_cursor.c
@@ -178,6 +178,9 @@ static int open_cursor_file(xcb_cursor_context_t *c, const char *theme, const ch
for (const char *path = inherits;
(path != NULL && fd == -1);
(path = next_path(path))) {
+ if (strcmp(path, theme) == 0) {
+ continue;
+ }
fd = open_cursor_file(c, path, name, scan_core);
}
--
2.48.1