main.c
changeset 968 ce9a5452ac8c
parent 967 66f17bf2c278
child 969 50fb50842dbc
equal deleted inserted replaced
967:66f17bf2c278 968:ce9a5452ac8c
   251 void
   251 void
   252 quit(const char *arg) {
   252 quit(const char *arg) {
   253 	readin = running = False;
   253 	readin = running = False;
   254 }
   254 }
   255 
   255 
   256 void
       
   257 updatebarpos(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.
   285  */
   259  */
   286 int
   260 int