mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
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:
parent
78c8bf08cb
commit
6f1f3592d4
2
grab.c
2
grab.c
@ -100,6 +100,8 @@ grab_sweep(struct client_ctx *cc)
|
|||||||
XUnmapWindow(X_Dpy, sc->menuwin);
|
XUnmapWindow(X_Dpy, sc->menuwin);
|
||||||
XReparentWindow(X_Dpy, sc->menuwin, sc->rootwin, 0, 0);
|
XReparentWindow(X_Dpy, sc->menuwin, sc->rootwin, 0, 0);
|
||||||
xu_ptr_ungrab();
|
xu_ptr_ungrab();
|
||||||
|
cc->ptr.x = -1;
|
||||||
|
cc->ptr.y = -1;
|
||||||
client_ptrwarp(cc);
|
client_ptrwarp(cc);
|
||||||
client_do_shape(cc);
|
client_do_shape(cc);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user