comparison main.c @ 51:035617ee18d1

new stuff
author Anselm R. Garbe <garbeam@wmii.de>
date Thu, 13 Jul 2006 19:55:07 +0200
parents 148f25ed0ad7
children d18f6dd0cf23
comparison
equal deleted inserted replaced
50:148f25ed0ad7 51:035617ee18d1
31 Atom wm_atom[WMLast], net_atom[NetLast]; 31 Atom wm_atom[WMLast], net_atom[NetLast];
32 Cursor cursor[CurLast]; 32 Cursor cursor[CurLast];
33 Bool running = True; 33 Bool running = True;
34 Bool issel; 34 Bool issel;
35 35
36 char stext[1024];
37 int tsel = Tdev; /* default tag */ 36 int tsel = Tdev; /* default tag */
38 int screen, sx, sy, sw, sh, th; 37 int screen, sx, sy, sw, sh, mw, th;
39 38
40 DC dc = {0}; 39 DC dc = {0};
41 Client *clients = NULL; 40 Client *clients = NULL;
42 Client *sel = NULL; 41 Client *sel = NULL;
43 42
221 error("dwm: another window manager is already running\n"); 220 error("dwm: another window manager is already running\n");
222 221
223 sx = sy = 0; 222 sx = sy = 0;
224 sw = DisplayWidth(dpy, screen); 223 sw = DisplayWidth(dpy, screen);
225 sh = DisplayHeight(dpy, screen); 224 sh = DisplayHeight(dpy, screen);
225 mw = (sw * MASTERW) / 100;
226 issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask); 226 issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask);
227 227
228 XSetErrorHandler(0); 228 XSetErrorHandler(0);
229 x_error_handler = XSetErrorHandler(error_handler); 229 x_error_handler = XSetErrorHandler(error_handler);
230 230