summaryrefslogtreecommitdiff
path: root/event.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 /event.c
parentf60c597d653bd7eab6c620fc53d732ca75f6a880 (diff)
fixed XSync handling and finished man page
Diffstat (limited to 'event.c')
-rw-r--r--event.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/event.c b/event.c
index 9a13eee5..e948cb3a 100644
--- a/event.c
+++ b/event.c
@@ -73,7 +73,7 @@ movemouse(Client *c)
handler[Expose](&ev);
break;
case MotionNotify:
- XFlush(dpy);
+ XSync(dpy, False);
c->x = ocx + (ev.xmotion.x - x1);
c->y = ocy + (ev.xmotion.y - y1);
resize(c, False);
@@ -105,7 +105,7 @@ resizemouse(Client *c)
handler[Expose](&ev);
break;
case MotionNotify:
- XFlush(dpy);
+ XSync(dpy, False);
c->w = abs(ocx - ev.xmotion.x);
c->h = abs(ocy - ev.xmotion.y);
c->x = (ocx <= ev.xmotion.x) ? ocx : ocx - c->w;
@@ -191,7 +191,7 @@ configurerequest(XEvent *e)
ev->value_mask &= ~CWStackMode;
ev->value_mask |= CWBorderWidth;
XConfigureWindow(dpy, ev->window, ev->value_mask, &wc);
- XFlush(dpy);
+ XSync(dpy, False);
}
static void