X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fx.h;h=07f8a725cfb3a8e3c52eefbfd94246b28951bd6d;hb=8dd6591c59d062204cb25dd66b33f1a35976f03c;hp=afc1645cd2044683991502d5bbc541da3bcd7e8b;hpb=6f8b2845863e9071d7d630b270729d46423c1eb5;p=i3%2Fi3 diff --git a/include/x.h b/include/x.h index afc1645c..07f8a725 100644 --- a/include/x.h +++ b/include/x.h @@ -8,8 +8,7 @@ * render.c). Basically a big state machine. * */ -#ifndef _X_H -#define _X_H +#pragma once /** Stores the X11 window ID of the currently focused window */ extern xcb_window_t focused_id; @@ -19,7 +18,7 @@ extern xcb_window_t focused_id; * every container from con_new(). * */ -void x_con_init(Con *con); +void x_con_init(Con *con, uint16_t depth); /** * Moves a child window from Container src to Container dest. @@ -104,11 +103,17 @@ void x_raise_con(Con *con); */ void x_set_name(Con *con, const char *name); +/** + * Set up the SHMLOG_PATH atom. + * + */ +void update_shmlog_atom(void); + /** * Sets up i3 specific atoms (I3_SOCKET_PATH and I3_CONFIG_PATH) * */ -void x_set_i3_atoms(); +void x_set_i3_atoms(void); /** * Set warp_to coordinates. This will trigger on the next call to @@ -124,5 +129,3 @@ void x_set_warp_to(Rect *rect); * */ void x_mask_event_mask(uint32_t mask); - -#endif