summaryrefslogtreecommitdiff
path: root/src/x.h
diff options
context:
space:
mode:
authorben <ben.nagy@arachnida.blog>2024-10-21 12:04:09 -0700
committerben <ben.nagy@arachnida.blog>2024-10-21 12:04:09 -0700
commitefebf35181554c40dc633e53329617c2b3990c83 (patch)
tree9077ece08a3a2271fcd3d0731fce9fbb8c42aab7 /src/x.h
parent639e8280cc4440f4162c3488f1b5c8ad36dec346 (diff)
get focused window and set window nameHEADmain
Diffstat (limited to 'src/x.h')
-rw-r--r--src/x.h5
1 files changed, 4 insertions, 1 deletions
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