place the pointer in the middle of the window after resizing with grab,

just like keyboard resize.

from Edd Barrett

ok oga@
This commit is contained in:
okan 2008-06-12 05:10:24 +00:00
parent 78c8bf08cb
commit 6f1f3592d4

2
grab.c
View File

@ -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;