aewl

diff client.c @ 79:aabebd6e61f3

fixed XSync handling and finished man page
author Anselm R. Garbe <garbeam@wmii.de>
date Sat, 15 Jul 2006 18:51:44 +0200
parents 38c8f7f7d401
children 8125f908c80c
line diff
     1.1 --- a/client.c	Sat Jul 15 18:11:14 2006 +0200
     1.2 +++ b/client.c	Sat Jul 15 18:51:44 2006 +0200
     1.3 @@ -49,13 +49,12 @@
     1.4  	Client *old = sel;
     1.5  	XEvent ev;
     1.6  
     1.7 -	XFlush(dpy);
     1.8  	sel = c;
     1.9  	if(old && old != c)
    1.10  		drawtitle(old);
    1.11  	drawtitle(c);
    1.12  	XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
    1.13 -	XFlush(dpy);
    1.14 +	XSync(dpy, False);
    1.15  	while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
    1.16  }
    1.17  
    1.18 @@ -303,7 +302,7 @@
    1.19  	e.above = None;
    1.20  	e.override_redirect = False;
    1.21  	XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&e);
    1.22 -	XFlush(dpy);
    1.23 +	XSync(dpy, False);
    1.24  }
    1.25  
    1.26  void
    1.27 @@ -393,7 +392,7 @@
    1.28  
    1.29  	free(c);
    1.30  
    1.31 -	XFlush(dpy);
    1.32 +	XSync(dpy, False);
    1.33  	XSetErrorHandler(xerror);
    1.34  	XUngrabServer(dpy);
    1.35  	arrange(NULL);