X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=main.c;fp=main.c;h=b56e333d54fd4300876bbcf45406c49de7aed4d8;hp=35a3a7858b725cf0ada66daa2a2d4839e503227e;hb=b975c4728046052a32626378df193217a96fbefc;hpb=47765f728614c348aa7dfc2eed6f754efc376922 diff --git a/main.c b/main.c index 35a3a78..b56e333 100644 --- a/main.c +++ b/main.c @@ -253,32 +253,6 @@ quit(const char *arg) { readin = running = False; } -void -updatebarpos(void) { - XEvent ev; - - wax = sx; - way = sy; - wah = sh; - waw = sw; - switch(bpos) { - default: - wah -= bh; - way += bh; - XMoveWindow(dpy, barwin, sx, sy); - break; - case BarBot: - wah -= bh; - XMoveWindow(dpy, barwin, sx, sy + wah); - break; - case BarOff: - XMoveWindow(dpy, barwin, sx, sy - bh); - break; - } - XSync(dpy, False); - while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); -} - /* There's no way to check accesses to destroyed windows, thus those cases are * ignored (especially on UnmapNotify's). Other types of errors call Xlibs * default error handler, which may call exit.