Introduction
Introduction Statistics Contact Development Disclaimer Help
tslight change of event handling order - dwm - [fork] customized build of dwm, …
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 67bc08d1b938842d27d976da9bbbc210b1f860b7
parent bcb07de75000e75a450e4dddf851e9ce69966f59
Author: arg@mmvi <unknown>
Date: Mon, 25 Sep 2006 21:28:00 +0200
slight change of event handling order
Diffstat:
M event.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/event.c b/event.c
t@@ -37,6 +37,9 @@ movemouse(Client *c) {
for(;;) {
XMaskEvent(dpy, MOUSEMASK | ExposureMask, &ev);
switch (ev.type) {
+ case ButtonRelease:
+ XUngrabPointer(dpy, CurrentTime);
+ return;
case Expose:
handler[Expose](&ev);
break;
t@@ -46,9 +49,6 @@ movemouse(Client *c) {
c->y = ocy + (ev.xmotion.y - y1);
resize(c, False, TopLeft);
break;
- case ButtonRelease:
- XUngrabPointer(dpy, CurrentTime);
- return;
}
}
}
t@@ -70,6 +70,9 @@ resizemouse(Client *c) {
for(;;) {
XMaskEvent(dpy, MOUSEMASK | ExposureMask, &ev);
switch(ev.type) {
+ case ButtonRelease:
+ XUngrabPointer(dpy, CurrentTime);
+ return;
case Expose:
handler[Expose](&ev);
break;
t@@ -87,9 +90,6 @@ resizemouse(Client *c) {
sticky = (ocy <= ev.xmotion.y) ? TopRight : Bo…
resize(c, True, sticky);
break;
- case ButtonRelease:
- XUngrabPointer(dpy, CurrentTime);
- return;
}
}
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.