X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=sys.h;h=adc0247590c6470b74e1769607542d492b1dd748;hb=81e74c1bf8ef8753d47ea73970fe1e4499db3c15;hp=e3c024553d27be9aa75e09fada4dc3dcc0f7ba90;hpb=620c13fa5f270ace9aa311833a16ebbe213effb4;p=wmpus diff --git a/sys.h b/sys.h index e3c0245..adc0247 100644 --- a/sys.h +++ b/sys.h @@ -28,21 +28,31 @@ typedef enum { ST_HIDE, // completely hidden ST_SHOW, // show as regular window - ST_FULL, // fullscreen/maximized + ST_FULL, // fullscreen (without decorations) + ST_MAX, // maximized (with decorations) ST_SHADE, // show titlebar only ST_ICON, // iconified/minimized ST_CLOSE, // close the window } state_t; +/* Window types */ +typedef enum { + TYPE_NORMAL, + TYPE_DIALOG, + TYPE_TOOLBAR, +} type_t; + /* Basic window type */ typedef struct win_sys win_sys_t; typedef struct win_wm win_wm_t; -typedef struct { +typedef struct win { int x, y, z; int w, h; - state_t state; - win_sys_t *sys; - win_wm_t *wm; + state_t state; + type_t type; + struct win *parent; + win_sys_t *sys; + win_wm_t *wm; } win_t; /* Generic key codes, also used for some other events