main.c
changeset 51 035617ee18d1
parent 50 148f25ed0ad7
child 52 d18f6dd0cf23
--- a/main.c	Thu Jul 13 18:21:38 2006 +0200
+++ b/main.c	Thu Jul 13 19:55:07 2006 +0200
@@ -33,9 +33,8 @@
 Bool running = True;
 Bool issel;
 
-char stext[1024];
 int tsel = Tdev; /* default tag */
-int screen, sx, sy, sw, sh, th;
+int screen, sx, sy, sw, sh, mw, th;
 
 DC dc = {0};
 Client *clients = NULL;
@@ -223,6 +222,7 @@
 	sx = sy = 0;
 	sw = DisplayWidth(dpy, screen);
 	sh = DisplayHeight(dpy, screen);
+	mw = (sw * MASTERW) / 100;
 	issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask);
 
 	XSetErrorHandler(0);