调整 xwindow_get_text_property 函数

This commit is contained in:
2025-12-09 03:20:31 +08:00
parent 8171cbb472
commit 503135830e
2 changed files with 14 additions and 11 deletions

View File

@@ -18,7 +18,8 @@ void xwindow_grab_keys(xcb_window_t window, const keyboard_t *keys,
int keys_length);
bool xwindow_send_event(xcb_window_t window, xcb_atom_t atom);
void xwindow_focus(xcb_window_t window);
char *xwindow_get_text_property(xcb_window_t window, xcb_atom_t property);
void xwindow_get_text_property(xcb_window_t window, xcb_atom_t property,
char **out);
#define xwindow_set_name_static(window, name) \
xcb_icccm_set_wm_name(wm.xcb_conn, window, XCB_ATOM_STRING, 8, \