summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c26
1 files changed, 0 insertions, 26 deletions
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) {
253 readin = running = False; 253 readin = running = False;
254} 254}
255 255
256void
257updatebarpos(void) {
258 XEvent ev;
259
260 wax = sx;
261 way = sy;
262 wah = sh;
263 waw = sw;
264 switch(bpos) {
265 default:
266 wah -= bh;
267 way += bh;
268 XMoveWindow(dpy, barwin, sx, sy);
269 break;
270 case BarBot:
271 wah -= bh;
272 XMoveWindow(dpy, barwin, sx, sy + wah);
273 break;
274 case BarOff:
275 XMoveWindow(dpy, barwin, sx, sy - bh);
276 break;
277 }
278 XSync(dpy, False);
279 while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
280}
281
282/* There's no way to check accesses to destroyed windows, thus those cases are 256/* There's no way to check accesses to destroyed windows, thus those cases are
283 * ignored (especially on UnmapNotify's). Other types of errors call Xlibs 257 * ignored (especially on UnmapNotify's). Other types of errors call Xlibs
284 * default error handler, which may call exit. 258 * default error handler, which may call exit.