backend: X11 后端添加获取窗口 metadata 信息方式

This commit is contained in:
zedhugh committed 2026-04-07 03:16:51 +08:00
1 parent ab961d6d79
commit 9728fad871
8 files changed
+176 -11

No files matched your search

+6
View File
@@ -24,6 +24,12 @@ static inline char *p_strdup(const char *text) {
return r;
}
static inline char *p_strndup(const char *text, size_t n) {
char *r = strndup(text, n);
if (!r) abort();
return r;
}
static inline char *p_strdup_nullable(const char *text) {
if (!text) return nullptr;
return p_strdup(text);