pinosaur
/
dwm.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed XSync handling and finished man page
[dwm.git]
/
client.c
diff --git
a/client.c
b/client.c
index
92b26a2
..
158b928
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-49,13
+49,12
@@
focus(Client *c)
Client *old = sel;
XEvent ev;
Client *old = sel;
XEvent ev;
- XFlush(dpy);
sel = c;
if(old && old != c)
drawtitle(old);
drawtitle(c);
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
sel = c;
if(old && old != c)
drawtitle(old);
drawtitle(c);
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
- X
Flush(dpy
);
+ X
Sync(dpy, False
);
while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}
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);
e.above = None;
e.override_redirect = False;
XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&e);
- X
Flush(dpy
);
+ X
Sync(dpy, False
);
}
void
}
void
@@
-393,7
+392,7
@@
unmanage(Client *c)
free(c);
free(c);
- X
Flush(dpy
);
+ X
Sync(dpy, False
);
XSetErrorHandler(xerror);
XUngrabServer(dpy);
arrange(NULL);
XSetErrorHandler(xerror);
XUngrabServer(dpy);
arrange(NULL);