dwm-meillo

diff event.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 0d71fb80b592
children 8125f908c80c
line diff
     1.1 --- a/event.c	Sat Jul 15 18:11:14 2006 +0200
     1.2 +++ b/event.c	Sat Jul 15 18:51:44 2006 +0200
     1.3 @@ -73,7 +73,7 @@
     1.4  			handler[Expose](&ev);
     1.5  			break;
     1.6  		case MotionNotify:
     1.7 -			XFlush(dpy);
     1.8 +			XSync(dpy, False);
     1.9  			c->x = ocx + (ev.xmotion.x - x1);
    1.10  			c->y = ocy + (ev.xmotion.y - y1);
    1.11  			resize(c, False);
    1.12 @@ -105,7 +105,7 @@
    1.13  			handler[Expose](&ev);
    1.14  			break;
    1.15  		case MotionNotify:
    1.16 -			XFlush(dpy);
    1.17 +			XSync(dpy, False);
    1.18  			c->w = abs(ocx - ev.xmotion.x);
    1.19  			c->h = abs(ocy - ev.xmotion.y);
    1.20  			c->x = (ocx <= ev.xmotion.x) ? ocx : ocx - c->w;
    1.21 @@ -191,7 +191,7 @@
    1.22  	ev->value_mask &= ~CWStackMode;
    1.23  	ev->value_mask |= CWBorderWidth;
    1.24  	XConfigureWindow(dpy, ev->window, ev->value_mask, &wc);
    1.25 -	XFlush(dpy);
    1.26 +	XSync(dpy, False);
    1.27  }
    1.28  
    1.29  static void