dwm-meillo

diff wm.h @ 0:491f34c11291

initial import
author Anselm R. Garbe <garbeam@wmii.de>
date Mon, 10 Jul 2006 16:38:18 +0200
parents
children a79188fe4a40
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/wm.h	Mon Jul 10 16:38:18 2006 +0200
     1.3 @@ -0,0 +1,57 @@
     1.4 +/*
     1.5 + * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
     1.6 + * See LICENSE file for license details.
     1.7 + */
     1.8 +
     1.9 +#include <X11/Xlib.h>
    1.10 +#include <X11/Xutil.h>
    1.11 +
    1.12 +/* WM atoms */
    1.13 +enum { WMState, WMProtocols, WMDelete, WMLast };
    1.14 +
    1.15 +/* NET atoms */
    1.16 +enum { NetSupported, NetWMName, NetLast };
    1.17 +
    1.18 +/* Cursor */
    1.19 +enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
    1.20 +
    1.21 +/* Rects */
    1.22 +enum { RFloat, RGrid, RLast };
    1.23 +
    1.24 +typedef struct Client Client;
    1.25 +typedef struct Tag Tag;
    1.26 +
    1.27 +struct Client {
    1.28 +	Tag *tag;
    1.29 +	char name[256];
    1.30 +	int proto;
    1.31 +	Window win;
    1.32 +	Window trans;
    1.33 +	Window title;
    1.34 +	GC gc;
    1.35 +	XSizeHints size;
    1.36 +	XRectangle r[RLast];
    1.37 +	Client *next;
    1.38 +	Client *tnext;
    1.39 +	Client *tprev;
    1.40 +};
    1.41 +
    1.42 +struct Tag {
    1.43 +	char name[256];
    1.44 +	Client *clients;
    1.45 +	Client *sel;
    1.46 +	XRectangle r;
    1.47 +};
    1.48 +
    1.49 +extern Display *dpy;
    1.50 +extern Window root;
    1.51 +extern XRectangle rect;
    1.52 +extern int screen, sel_screen;
    1.53 +extern unsigned int kmask, numlock_mask;
    1.54 +extern Atom wm_atom[WMLast];
    1.55 +extern Atom net_atom[NetLast];
    1.56 +extern Cursor cursor[CurLast];
    1.57 +extern Pixmap pmap;
    1.58 +
    1.59 +/* wm.c */
    1.60 +extern void error(char *errstr, ...);