From efebf35181554c40dc633e53329617c2b3990c83 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 21 Oct 2024 12:04:09 -0700 Subject: get focused window and set window name --- src/x.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/x.h') diff --git a/src/x.h b/src/x.h index 632a7a4..f4b69bc 100644 --- a/src/x.h +++ b/src/x.h @@ -15,9 +15,12 @@ typedef struct { Server_context_t *init_XCB_server(); xcb_window_t create_win(Server_context_t *info); -xcb_cursor_t cursor_set(xcb_connection_t *c, xcb_screen_t *scr, xcb_window_t win, u32 cid); +xcb_cursor_t cursor_set(xcb_connection_t *c, xcb_window_t win, u32 cid); void cursor_die(xcb_connection_t *c, xcb_window_t win, u32 value_list); const char *ksym_to_str(const xcb_keysym_t *ksym); void die(xcb_key_symbols_t *sym, Server_context_t *s_info, xcb_drawable_t win); +xcb_window_t get_focused_win(xcb_connection_t *con); +xcb_atom_t get_atom(xcb_connection_t *c, const char *atom_name); +void xcb_set_win_name(xcb_connection_t *c, xcb_window_t w, const char *title); #endif -- cgit v1.2.3