dwm-meillo

annotate wm.h @ 3:e969f3575b7a

several new changes, made gridmenu working
author Anselm R. Garbe <garbeam@wmii.de>
date Mon, 10 Jul 2006 19:46:24 +0200
parents a79188fe4a40
children e5018cae273f
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@3 6 #include "config.h"
garbeam@2 7 #include "draw.h"
garbeam@2 8 #include "util.h"
garbeam@2 9
garbeam@0 10 #include <X11/Xutil.h>
garbeam@0 11
garbeam@0 12 /* WM atoms */
garbeam@0 13 enum { WMState, WMProtocols, WMDelete, WMLast };
garbeam@0 14
garbeam@0 15 /* NET atoms */
garbeam@0 16 enum { NetSupported, NetWMName, NetLast };
garbeam@0 17
garbeam@0 18 /* Cursor */
garbeam@0 19 enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
garbeam@0 20
garbeam@0 21 /* Rects */
garbeam@0 22 enum { RFloat, RGrid, RLast };
garbeam@0 23
garbeam@0 24 typedef struct Client Client;
garbeam@0 25 typedef struct Tag Tag;
garbeam@0 26
garbeam@0 27 struct Client {
garbeam@0 28 Tag *tag;
garbeam@0 29 char name[256];
garbeam@0 30 int proto;
garbeam@0 31 Window win;
garbeam@0 32 Window trans;
garbeam@0 33 Window title;
garbeam@0 34 GC gc;
garbeam@0 35 XSizeHints size;
garbeam@0 36 XRectangle r[RLast];
garbeam@0 37 Client *next;
garbeam@0 38 Client *tnext;
garbeam@0 39 Client *tprev;
garbeam@0 40 };
garbeam@0 41
garbeam@0 42 struct Tag {
garbeam@0 43 char name[256];
garbeam@0 44 Client *clients;
garbeam@0 45 Client *sel;
garbeam@0 46 XRectangle r;
garbeam@0 47 };
garbeam@0 48
garbeam@0 49 extern Display *dpy;
garbeam@0 50 extern Window root;
garbeam@0 51 extern XRectangle rect;
garbeam@0 52 extern Atom wm_atom[WMLast];
garbeam@0 53 extern Atom net_atom[NetLast];
garbeam@0 54 extern Cursor cursor[CurLast];
garbeam@0 55 extern Pixmap pmap;
garbeam@0 56
garbeam@3 57 extern int screen, sel_screen;
garbeam@3 58 extern unsigned int kmask, numlock_mask;
garbeam@3 59
garbeam@3 60 extern Brush brush;
garbeam@3 61
garbeam@0 62 /* wm.c */