diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-02-08 11:48:01 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-08 11:48:01 +0100 |
| commit | d2dd58eabde15ebf0a2c4c61239d65543931ae04 (patch) | |
| tree | c9f876ba14362b01cd343183ae64e9c7384b0dcf /main.c | |
| parent | next version is 3.5 (diff) | |
| download | dwm-d2dd58eabde15ebf0a2c4c61239d65543931ae04.tar.gz dwm-d2dd58eabde15ebf0a2c4c61239d65543931ae04.zip | |
added TOPBAR option for making the bar appear what the user likes
Diffstat (limited to '')
| -rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -141,15 +141,15 @@ setup(void) { | |||
| 141 | wa.override_redirect = 1; | 141 | wa.override_redirect = 1; |
| 142 | wa.background_pixmap = ParentRelative; | 142 | wa.background_pixmap = ParentRelative; |
| 143 | wa.event_mask = ButtonPressMask | ExposureMask; | 143 | wa.event_mask = ButtonPressMask | ExposureMask; |
| 144 | barwin = XCreateWindow(dpy, root, sx, sy + sh - bh, sw, bh, 0, DefaultDepth(dpy, screen), | 144 | barwin = XCreateWindow(dpy, root, sx, sy + (TOPBAR ? 0 : sh - bh), sw, bh, 0, |
| 145 | CopyFromParent, DefaultVisual(dpy, screen), | 145 | DefaultDepth(dpy, screen), CopyFromParent, DefaultVisual(dpy, screen), |
| 146 | CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); | 146 | CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); |
| 147 | XDefineCursor(dpy, barwin, cursor[CurNormal]); | 147 | XDefineCursor(dpy, barwin, cursor[CurNormal]); |
| 148 | XMapRaised(dpy, barwin); | 148 | XMapRaised(dpy, barwin); |
| 149 | strcpy(stext, "dwm-"VERSION); | 149 | strcpy(stext, "dwm-"VERSION); |
| 150 | /* windowarea */ | 150 | /* windowarea */ |
| 151 | wax = sx; | 151 | wax = sx; |
| 152 | way = sy; | 152 | way = sy + (TOPBAR ? bh : 0); |
| 153 | wah = sh - bh; | 153 | wah = sh - bh; |
| 154 | waw = sw; | 154 | waw = sw; |
| 155 | /* pixmap for everything */ | 155 | /* pixmap for everything */ |
