summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-21 11:49:06 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-21 11:49:06 +0100
commit74cbbe5f3549cc3f95f9bf14a356ecfbb9a8f481 (patch)
treedb6a1908dcfd3718084f504696741cdc6331c5b5 /main.c
parentremoved some global vars which should be static instead (diff)
downloaddwm-74cbbe5f3549cc3f95f9bf14a356ecfbb9a8f481.tar.gz
dwm-74cbbe5f3549cc3f95f9bf14a356ecfbb9a8f481.zip
reverted accidental removal of sx, sy
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/main.c b/main.c
index 3470287..d39c913 100644
--- a/main.c
+++ b/main.c
@@ -18,7 +18,7 @@
18/* extern */ 18/* extern */
19 19
20char stext[256]; 20char stext[256];
21int screen, sw, sh, wax, way, waw, wah; 21int screen, sx, sy, sw, sh, wax, way, waw, wah;
22unsigned int bh, ntags, numlockmask; 22unsigned int bh, ntags, numlockmask;
23Atom wmatom[WMLast], netatom[NetLast]; 23Atom wmatom[WMLast], netatom[NetLast];
24Bool *seltag; 24Bool *seltag;
@@ -181,6 +181,7 @@ setup(void) {
181 dc.sel[ColFG] = initcolor(SELFGCOLOR); 181 dc.sel[ColFG] = initcolor(SELFGCOLOR);
182 initfont(FONT); 182 initfont(FONT);
183 /* geometry */ 183 /* geometry */
184 sx = sy = 0;
184 sw = DisplayWidth(dpy, screen); 185 sw = DisplayWidth(dpy, screen);
185 sh = DisplayHeight(dpy, screen); 186 sh = DisplayHeight(dpy, screen);
186 initlayouts(); 187 initlayouts();
@@ -189,15 +190,15 @@ setup(void) {
189 wa.override_redirect = 1; 190 wa.override_redirect = 1;
190 wa.background_pixmap = ParentRelative; 191 wa.background_pixmap = ParentRelative;
191 wa.event_mask = ButtonPressMask | ExposureMask; 192 wa.event_mask = ButtonPressMask | ExposureMask;
192 barwin = XCreateWindow(dpy, root, 0, (TOPBAR ? 0 : sh - bh), sw, bh, 0, 193 barwin = XCreateWindow(dpy, root, sx, sy + (TOPBAR ? 0 : sh - bh), sw, bh, 0,
193 DefaultDepth(dpy, screen), CopyFromParent, DefaultVisual(dpy, screen), 194 DefaultDepth(dpy, screen), CopyFromParent, DefaultVisual(dpy, screen),
194 CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); 195 CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
195 XDefineCursor(dpy, barwin, cursor[CurNormal]); 196 XDefineCursor(dpy, barwin, cursor[CurNormal]);
196 XMapRaised(dpy, barwin); 197 XMapRaised(dpy, barwin);
197 strcpy(stext, "dwm-"VERSION); 198 strcpy(stext, "dwm-"VERSION);
198 /* windowarea */ 199 /* windowarea */
199 wax = 0; 200 wax = sx;
200 way = (TOPBAR ? bh : 0); 201 way = sy + (TOPBAR ? bh : 0);
201 wah = sh - bh; 202 wah = sh - bh;
202 waw = sw; 203 waw = sw;
203 /* pixmap for everything */ 204 /* pixmap for everything */