From 6f1f3592d4c93d625b37d0f9842ab32a78766c7b Mon Sep 17 00:00:00 2001 From: okan Date: Thu, 12 Jun 2008 05:10:24 +0000 Subject: [PATCH] place the pointer in the middle of the window after resizing with grab, just like keyboard resize. from Edd Barrett ok oga@ --- grab.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grab.c b/grab.c index 8a901c0..6249c2b 100644 --- a/grab.c +++ b/grab.c @@ -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;