[hackers] [dwm] added pointer warp on drop in resize

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Mon Feb 12 10:20:53 2007

changeset: 745:cf432071e646
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Mon Feb 12 10:19:52 2007 +0100
summary: added pointer warp on drop in resize

diff -r 628c5bac7f3b -r cf432071e646 event.c
--- a/event.c Fri Feb 09 14:56:19 2007 +0100
+++ b/event.c Mon Feb 12 10:19:52 2007 +0100
@@ -82,6 +82,8 @@ resizemouse(Client *c) {
                 switch(ev.type) {
                 case ButtonRelease:
                         resize(c, True);
+ XWarpPointer(dpy, None, c->win, 0, 0, 0, 0,
+ c->w + c->border - 1, c->h + c->border - 1);
                         XUngrabPointer(dpy, CurrentTime);
                         return;
                 case ConfigureRequest:
Received on Mon Feb 12 2007 - 10:20:53 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:13 UTC