dwm-meillo

annotate wm.h @ 2:a79188fe4a40

added new stuff
author Anselm R. Garbe <garbeam@wmii.de>
date Mon, 10 Jul 2006 18:35:39 +0200
parents 491f34c11291
children e969f3575b7a
rev   line source
garbeam@0 1 /*
garbeam@0 2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
garbeam@0 3 * See LICENSE file for license details.
garbeam@0 4 */
garbeam@0 5
garbeam@2 6 #include "draw.h"
garbeam@2 7 #include "util.h"
garbeam@2 8
garbeam@0 9 #include <X11/Xutil.h>
garbeam@0 10
garbeam@0 11 /* WM atoms */
garbeam@0 12 enum { WMState, WMProtocols, WMDelete, WMLast };
garbeam@0 13
garbeam@0 14 /* NET atoms */
garbeam@0 15 enum { NetSupported, NetWMName, NetLast };
garbeam@0 16
garbeam@0 17 /* Cursor */
garbeam@0 18 enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
garbeam@0 19
garbeam@0 20 /* Rects */
garbeam@0 21 enum { RFloat, RGrid, RLast };
garbeam@0 22
garbeam@0 23 typedef struct Client Client;
garbeam@0 24 typedef struct Tag Tag;
garbeam@0 25
garbeam@0 26 struct Client {
garbeam@0 27 Tag *tag;
garbeam@0 28 char name[256];
garbeam@0 29 int proto;
garbeam@0 30 Window win;
garbeam@0 31 Window trans;
garbeam@0 32 Window title;
garbeam@0 33 GC gc;
garbeam@0 34 XSizeHints size;
garbeam@0 35 XRectangle r[RLast];
garbeam@0 36 Client *next;
garbeam@0 37 Client *tnext;
garbeam@0 38 Client *tprev;
garbeam@0 39 };
garbeam@0 40
garbeam@0 41 struct Tag {
garbeam@0 42 char name[256];
garbeam@0 43 Client *clients;
garbeam@0 44 Client *sel;
garbeam@0 45 XRectangle r;
garbeam@0 46 };
garbeam@0 47
garbeam@0 48 extern Display *dpy;
garbeam@0 49 extern Window root;
garbeam@0 50 extern XRectangle rect;
garbeam@0 51 extern int screen, sel_screen;
garbeam@0 52 extern unsigned int kmask, numlock_mask;
garbeam@0 53 extern Atom wm_atom[WMLast];
garbeam@0 54 extern Atom net_atom[NetLast];
garbeam@0 55 extern Cursor cursor[CurLast];
garbeam@0 56 extern Pixmap pmap;
garbeam@0 57
garbeam@0 58 /* wm.c */