Mercurial > aewl
comparison wm.c @ 33:e90449e03167
new stuff (some warning elimination)
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Thu, 13 Jul 2006 01:55:54 +0200 |
parents | 082c75b937b5 |
children | cd30cce52b78 |
comparison
equal
deleted
inserted
replaced
32:082c75b937b5 | 33:e90449e03167 |
---|---|
172 unmanage(clients); | 172 unmanage(clients); |
173 XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); | 173 XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); |
174 } | 174 } |
175 | 175 |
176 void | 176 void |
177 run(void *aux) | |
178 { | |
179 spawn(dpy, aux); | |
180 } | |
181 | |
182 void | |
183 quit(void *aux) | 177 quit(void *aux) |
184 { | 178 { |
185 running = False; | 179 running = False; |
186 } | 180 } |
187 | 181 |
248 cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur); | 242 cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur); |
249 | 243 |
250 update_keys(); | 244 update_keys(); |
251 | 245 |
252 /* style */ | 246 /* style */ |
253 loadcolors(dpy, screen, &brush, BGCOLOR, FGCOLOR, BORDERCOLOR); | 247 loadcolors(screen, &brush, BGCOLOR, FGCOLOR, BORDERCOLOR); |
254 loadfont(dpy, &brush.font, FONT); | 248 loadfont(&brush.font, FONT); |
255 | 249 |
256 th = texth(&brush.font); | 250 th = texth(&brush.font); |
257 | 251 |
258 brush.drawable = XCreatePixmap(dpy, root, sw, th, DefaultDepth(dpy, screen)); | 252 brush.drawable = XCreatePixmap(dpy, root, sw, th, DefaultDepth(dpy, screen)); |
259 brush.gc = XCreateGC(dpy, root, 0, 0); | 253 brush.gc = XCreateGC(dpy, root, 0, 0); |