dwm-meillo
diff event.c @ 490:303d3384720e
slight change of event handling order
author | arg@mmvi |
---|---|
date | Mon, 25 Sep 2006 21:28:00 +0200 |
parents | d34374cbe926 |
children | 12395ef46d97 |
line diff
1.1 --- a/event.c Mon Sep 25 21:19:18 2006 +0200 1.2 +++ b/event.c Mon Sep 25 21:28:00 2006 +0200 1.3 @@ -37,6 +37,9 @@ 1.4 for(;;) { 1.5 XMaskEvent(dpy, MOUSEMASK | ExposureMask, &ev); 1.6 switch (ev.type) { 1.7 + case ButtonRelease: 1.8 + XUngrabPointer(dpy, CurrentTime); 1.9 + return; 1.10 case Expose: 1.11 handler[Expose](&ev); 1.12 break; 1.13 @@ -46,9 +49,6 @@ 1.14 c->y = ocy + (ev.xmotion.y - y1); 1.15 resize(c, False, TopLeft); 1.16 break; 1.17 - case ButtonRelease: 1.18 - XUngrabPointer(dpy, CurrentTime); 1.19 - return; 1.20 } 1.21 } 1.22 } 1.23 @@ -70,6 +70,9 @@ 1.24 for(;;) { 1.25 XMaskEvent(dpy, MOUSEMASK | ExposureMask, &ev); 1.26 switch(ev.type) { 1.27 + case ButtonRelease: 1.28 + XUngrabPointer(dpy, CurrentTime); 1.29 + return; 1.30 case Expose: 1.31 handler[Expose](&ev); 1.32 break; 1.33 @@ -87,9 +90,6 @@ 1.34 sticky = (ocy <= ev.xmotion.y) ? TopRight : BotRight; 1.35 resize(c, True, sticky); 1.36 break; 1.37 - case ButtonRelease: 1.38 - XUngrabPointer(dpy, CurrentTime); 1.39 - return; 1.40 } 1.41 } 1.42 }