dwm-meillo

diff event.c @ 148:5267e1204367

uppercasing all define'd values (uppercase-prefixed should only be enum field qualifiers)
author arg@10ksloc.org
date Tue, 01 Aug 2006 14:46:01 +0200
parents f328ce9c558c
children 332fcc6d4f88
line diff
     1.1 --- a/event.c	Tue Aug 01 14:03:29 2006 +0200
     1.2 +++ b/event.c	Tue Aug 01 14:46:01 2006 +0200
     1.3 @@ -32,12 +32,12 @@
     1.4  
     1.5  	ocx = c->x;
     1.6  	ocy = c->y;
     1.7 -	if(XGrabPointer(dpy, root, False, MouseMask, GrabModeAsync, GrabModeAsync,
     1.8 +	if(XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
     1.9  			None, cursor[CurMove], CurrentTime) != GrabSuccess)
    1.10  		return;
    1.11  	XQueryPointer(dpy, root, &dummy, &dummy, &x1, &y1, &di, &di, &dui);
    1.12  	for(;;) {
    1.13 -		XMaskEvent(dpy, MouseMask | ExposureMask, &ev);
    1.14 +		XMaskEvent(dpy, MOUSEMASK | ExposureMask, &ev);
    1.15  		switch (ev.type) {
    1.16  		default: break;
    1.17  		case Expose:
    1.18 @@ -65,12 +65,12 @@
    1.19  
    1.20  	ocx = c->x;
    1.21  	ocy = c->y;
    1.22 -	if(XGrabPointer(dpy, root, False, MouseMask, GrabModeAsync, GrabModeAsync,
    1.23 +	if(XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
    1.24  				None, cursor[CurResize], CurrentTime) != GrabSuccess)
    1.25  		return;
    1.26  	XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w, c->h);
    1.27  	for(;;) {
    1.28 -		XMaskEvent(dpy, MouseMask | ExposureMask, &ev);
    1.29 +		XMaskEvent(dpy, MOUSEMASK | ExposureMask, &ev);
    1.30  		switch(ev.type) {
    1.31  		default: break;
    1.32  		case Expose: