diff options
Diffstat (limited to '')
| -rw-r--r-- | dwm.h | 2 | ||||
| -rw-r--r-- | main.c | 9 |
2 files changed, 6 insertions, 5 deletions
| @@ -87,7 +87,7 @@ typedef struct { | |||
| 87 | 87 | ||
| 88 | extern const char *tags[]; /* all tags */ | 88 | extern const char *tags[]; /* all tags */ |
| 89 | extern char stext[256]; /* status text */ | 89 | extern char stext[256]; /* status text */ |
| 90 | extern int screen, sw, sh; /* screen geometry */ | 90 | extern int screen, sx, sy, sw, sh; /* screen geometry */ |
| 91 | extern int wax, way, wah, waw; /* windowarea geometry */ | 91 | extern int wax, way, wah, waw; /* windowarea geometry */ |
| 92 | extern unsigned int bh, blw; /* bar height, bar layout label width */ | 92 | extern unsigned int bh, blw; /* bar height, bar layout label width */ |
| 93 | extern unsigned int master, nmaster; /* master percent, number of master clients */ | 93 | extern unsigned int master, nmaster; /* master percent, number of master clients */ |
| @@ -18,7 +18,7 @@ | |||
| 18 | /* extern */ | 18 | /* extern */ |
| 19 | 19 | ||
| 20 | char stext[256]; | 20 | char stext[256]; |
| 21 | int screen, sw, sh, wax, way, waw, wah; | 21 | int screen, sx, sy, sw, sh, wax, way, waw, wah; |
| 22 | unsigned int bh, ntags, numlockmask; | 22 | unsigned int bh, ntags, numlockmask; |
| 23 | Atom wmatom[WMLast], netatom[NetLast]; | 23 | Atom wmatom[WMLast], netatom[NetLast]; |
| 24 | Bool *seltag; | 24 | Bool *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 */ |
