Mercurial > dwm-meillo
comparison dwm.h @ 505:2c29d74b11dc
first step to a more flexible dotile() algorithm
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Fri, 29 Sep 2006 12:38:27 +0200 |
parents | 9aa3d06199cb |
children | 2824b5d0f0f0 |
comparison
equal
deleted
inserted
replaced
504:0cefc169ff67 | 505:2c29d74b11dc |
---|---|
44 | 44 |
45 enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ | 45 enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ |
46 enum { WMProtocols, WMDelete, WMLast }; /* default atoms */ | 46 enum { WMProtocols, WMDelete, WMLast }; /* default atoms */ |
47 enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ | 47 enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ |
48 enum { ColFG, ColBG, ColLast }; /* color */ | 48 enum { ColFG, ColBG, ColLast }; /* color */ |
49 | |
50 typedef enum { | |
51 StackLeft, StackBottom, StackRight | |
52 } StackPos; /* stack position*/ | |
49 | 53 |
50 typedef enum { | 54 typedef enum { |
51 TopLeft, TopRight, BotLeft, BotRight | 55 TopLeft, TopRight, BotLeft, BotRight |
52 } Corner; /* window corners */ | 56 } Corner; /* window corners */ |
53 | 57 |
95 }; | 99 }; |
96 | 100 |
97 extern const char *tags[]; /* all tags */ | 101 extern const char *tags[]; /* all tags */ |
98 extern char stext[1024]; /* status text */ | 102 extern char stext[1024]; /* status text */ |
99 extern int bx, by, bw, bh, bmw; /* bar geometry, bar mode label width */ | 103 extern int bx, by, bw, bh, bmw; /* bar geometry, bar mode label width */ |
100 extern int mw, screen, sx, sy, sw, sh; /* screen geometry, master width */ | 104 extern int master, screen, sx, sy, sw, sh; /* screen geometry, master width */ |
101 extern unsigned int ntags, numlockmask; /* number of tags, dynamic lock mask */ | 105 extern unsigned int ntags, numlockmask; /* number of tags, dynamic lock mask */ |
102 extern void (*handler[LASTEvent])(XEvent *); /* event handler */ | 106 extern void (*handler[LASTEvent])(XEvent *); /* event handler */ |
103 extern void (*arrange)(Arg *); /* arrange function, indicates mode */ | 107 extern void (*arrange)(Arg *); /* arrange function, indicates mode */ |
104 extern Atom wmatom[WMLast], netatom[NetLast]; | 108 extern Atom wmatom[WMLast], netatom[NetLast]; |
105 extern Bool running, issel, *seltag; /* seltag is array of Bool */ | 109 extern Bool running, issel, *seltag; /* seltag is array of Bool */ |
110 extern Bool isvertical; /* stack direction */ | |
106 extern Client *clients, *sel, *stack; /* global client list and stack */ | 111 extern Client *clients, *sel, *stack; /* global client list and stack */ |
107 extern Cursor cursor[CurLast]; | 112 extern Cursor cursor[CurLast]; |
108 extern DC dc; /* global draw context */ | 113 extern DC dc; /* global draw context */ |
109 extern Display *dpy; | 114 extern Display *dpy; |
115 extern StackPos stackpos; | |
110 extern Window root, barwin; | 116 extern Window root, barwin; |
111 | 117 |
112 /* client.c */ | 118 /* client.c */ |
113 extern void ban(Client *c); /* ban c from screen */ | 119 extern void ban(Client *c); /* ban c from screen */ |
114 extern void configure(Client *c); /* send synthetic configure event */ | 120 extern void configure(Client *c); /* send synthetic configure event */ |