修复 xwindow_get_text_property 函数 bug

This commit is contained in:
2025-12-14 17:14:18 +08:00
parent 9594b84237
commit db4bcfcb81

View File

@@ -184,7 +184,7 @@ void xwindow_get_text_property(xcb_window_t window, xcb_atom_t property,
if (out == nullptr) return;
xcb_get_property_cookie_t cookie = xcb_get_property_unchecked(
wm.xcb_conn, false, window, property, XCB_ATOM_STRING, 0, UINT32_MAX);
wm.xcb_conn, false, window, property, XCB_ATOM_ANY, 0, UINT32_MAX);
xcb_get_property_reply_t *reply =
xcb_get_property_reply(wm.xcb_conn, cookie, nullptr);
int length = xcb_get_property_value_length(reply);