summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2008-06-12 05:10:25 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2008-06-12 05:10:25 +0000
commit96ba67e49a6bcfed4f79240f9d197ebb4e0805a6 (patch)
treee29282b855bf857c487416483863e41a2b00815c /app
parent1566ff768a0b51b28e01d3a2a0ee873cd7f46597 (diff)
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 'app')
-rw-r--r--app/cwm/grab.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/cwm/grab.c b/app/cwm/grab.c
index 3aa7ff312..6a25e88ea 100644
--- a/app/cwm/grab.c
+++ b/app/cwm/grab.c
@@ -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;