aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-15 18:51:44 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-15 18:51:44 +0200
commite6cbe9c11e88537d74eb094ba5844f71ee57f268 (patch)
tree7442199183f1d55086195a3076ff000c59e13a4d /client.c
parentf60c597d653bd7eab6c620fc53d732ca75f6a880 (diff)
downloaddwm-e6cbe9c11e88537d74eb094ba5844f71ee57f268.tar.gz
fixed XSync handling and finished man page
Diffstat (limited to 'client.c')
-rw-r--r--client.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/client.c b/client.c
index 92b26a2..158b928 100644
--- a/client.c
+++ b/client.c
@@ -49,13 +49,12 @@ focus(Client *c)
Client *old = sel;
XEvent ev;
- XFlush(dpy);
sel = c;
if(old && old != c)
drawtitle(old);
drawtitle(c);
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
- XFlush(dpy);
+ XSync(dpy, False);
while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}
@@ -303,7 +302,7 @@ resize(Client *c, Bool inc)
e.above = None;
e.override_redirect = False;
XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&e);
- XFlush(dpy);
+ XSync(dpy, False);
}
void
@@ -393,7 +392,7 @@ unmanage(Client *c)
free(c);
- XFlush(dpy);
+ XSync(dpy, False);
XSetErrorHandler(xerror);
XUngrabServer(dpy);
arrange(NULL);