X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=bspwm.h;h=7e1557ec8016a9d18b65105ba4246669e579a96b;hb=24507288bfffcd4ad10d2c53fb370699ba96c387;hp=0d5714119bdda08094951b3f3d591327c82d2890;hpb=10599b94f040092f189787e5e555aca26c6af0ed;p=bspwm.git diff --git a/bspwm.h b/bspwm.h index 0d57141..7e1557e 100644 --- a/bspwm.h +++ b/bspwm.h @@ -1,24 +1,26 @@ -#ifndef _MAIN_H -#define _MAIN_H +#ifndef _BSPWM_H +#define _BSPWM_H -#define INPUT_FIFO "/tmp/bspwm-input" +#include "types.h" xcb_connection_t *dpy; int default_screen, screen_width, screen_height; +unsigned int num_clients; +uint32_t num_desktops; xcb_screen_t *screen; +xcb_rectangle_t root_rect; +split_mode_t split_mode; +direction_t split_dir; +desktop_t *desk; +desktop_t *last_desk; +desktop_t *desk_head; +desktop_t *desk_tail; +rule_t *rule_head; bool running; -static char *WM_ATOM_NAME[] = { "WM_PROTOCOLS", "WM_DELETE_WINDOW" }; -static char *NET_ATOM_NAME[] = { "_NET_SUPPORTED", "_NET_WM_STATE_FULLSCREEN", "_NET_WM_STATE", "_NET_ACTIVE_WINDOW" }; - -enum { WM_PROTOCOLS, WM_DELETE_WINDOW, WM_COUNT }; -enum { NET_SUPPORTED, NET_FULLSCREEN, NET_WM_STATE, NET_ACTIVE, NET_COUNT }; - -static xcb_atom_t wmatoms[WM_COUNT], netatoms[NET_COUNT]; - -int xcb_check_other_wm(void); -xcb_screen_t *screen_of_display(xcb_connection_t*, int); -void sigchld(int); +int register_events(void); +void handle_zombie(int); void setup(int); +void quit(void); #endif