X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fx.h;h=3e81bc3646f36225a8d4f24d3495b5efa9654b7f;hb=ad7dec31d5785ce9006bbb8498529bead652d19c;hp=b6bb4a5283702dd2f0110f2122b2d28574f77710;hpb=8677936f6ccab4f733580d72926a06a8e1f081a2;p=i3%2Fi3 diff --git a/include/x.h b/include/x.h index b6bb4a52..3e81bc36 100644 --- a/include/x.h +++ b/include/x.h @@ -2,14 +2,15 @@ * vim:ts=4:sw=4:expandtab * * i3 - an improved dynamic tiling window manager - * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE) + * © 2009 Michael Stapelberg and contributors (see also: LICENSE) * * x.c: Interface to X11, transfers our in-memory state to X11 (see also * render.c). Basically a big state machine. * */ -#ifndef I3_X_H -#define I3_X_H +#pragma once + +#include /** Stores the X11 window ID of the currently focused window */ extern xcb_window_t focused_id; @@ -19,7 +20,7 @@ extern xcb_window_t focused_id; * every container from con_new(). * */ -void x_con_init(Con *con, uint16_t depth); +void x_con_init(Con *con); /** * Moves a child window from Container src to Container dest. @@ -93,12 +94,8 @@ void x_push_changes(Con *con); * Raises the specified container in the internal stack of X windows. The * next call to x_push_changes() will make the change visible in X11. * - * If above_all is true, the X11 window will be raised to the top - * of the stack. This should only be used for precisely one fullscreen - * window per output. - * */ -void x_raise_con(Con *con, bool above_all); +void x_raise_con(Con *con); /** * Sets the WM_NAME property (so, no UTF8, but used only for debugging anyways) @@ -134,5 +131,3 @@ void x_set_warp_to(Rect *rect); * */ void x_mask_event_mask(uint32_t mask); - -#endif