diff options
author | okan | 2008-06-12 05:10:24 +0000 |
---|---|---|
committer | okan | 2008-06-12 05:10:24 +0000 |
commit | ec170a7d8ceafeac794552f321d8f7d94b8be6a7 (patch) | |
tree | b9a7fec588deb5e0667ea1e5b2baa6ff3744b09f /grab.c | |
parent | acc806aec6bb6ba93379c3e25d9d4bf71b226e20 (diff) | |
download | cwm-ec170a7d8ceafeac794552f321d8f7d94b8be6a7.tar.gz |
place the pointer in the middle of the window after resizing with grab,
just like keyboard resize.
from Edd Barrett
ok oga@
Diffstat (limited to 'grab.c')
-rw-r--r-- | grab.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: grab.c,v 1.14 2008/05/21 14:11:19 oga Exp $ + * $Id: grab.c,v 1.15 2008/06/12 05:10:24 okan Exp $ */ #include "headers.h" @@ -100,6 +100,8 @@ grab_sweep(struct client_ctx *cc) XUnmapWindow(X_Dpy, sc->menuwin); XReparentWindow(X_Dpy, sc->menuwin, sc->rootwin, 0, 0); xu_ptr_ungrab(); + cc->ptr.x = -1; + cc->ptr.y = -1; client_ptrwarp(cc); client_do_shape(cc); return; |