summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 5324ae0..614faa0 100644
--- a/main.c
+++ b/main.c
@@ -190,7 +190,7 @@ setup(void) {
190 wa.override_redirect = 1; 190 wa.override_redirect = 1;
191 wa.background_pixmap = ParentRelative; 191 wa.background_pixmap = ParentRelative;
192 wa.event_mask = ButtonPressMask | ExposureMask; 192 wa.event_mask = ButtonPressMask | ExposureMask;
193 barwin = XCreateWindow(dpy, root, sx, sy - bh, sw, bh, 0, 193 barwin = XCreateWindow(dpy, root, sx, sy, sw, bh, 0,
194 DefaultDepth(dpy, screen), CopyFromParent, DefaultVisual(dpy, screen), 194 DefaultDepth(dpy, screen), CopyFromParent, DefaultVisual(dpy, screen),
195 CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); 195 CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
196 XDefineCursor(dpy, barwin, cursor[CurNormal]); 196 XDefineCursor(dpy, barwin, cursor[CurNormal]);
@@ -232,7 +232,7 @@ updatebarpos(void) {
232 wah = sh; 232 wah = sh;
233 waw = sw; 233 waw = sw;
234 switch(bpos) { 234 switch(bpos) {
235 case BarTop: 235 default:
236 wah -= bh; 236 wah -= bh;
237 way += bh; 237 way += bh;
238 XMoveWindow(dpy, barwin, sx, sy); 238 XMoveWindow(dpy, barwin, sx, sy);
@@ -243,8 +243,8 @@ updatebarpos(void) {
243 break; 243 break;
244 case BarOff: 244 case BarOff:
245 XMoveWindow(dpy, barwin, sx, sy - bh); 245 XMoveWindow(dpy, barwin, sx, sy - bh);
246 break;
246 } 247 }
247 lt->arrange();
248} 248}
249 249
250/* There's no way to check accesses to destroyed windows, thus those cases are 250/* There's no way to check accesses to destroyed windows, thus those cases are