From 0cde83bdc3faf039c3953ee0315851a8fc4b7303 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Thu, 29 Jan 2009 21:41:00 +0000 Subject: [PATCH] Move mouse back onto the border to retain focus on resized window. --- scrotwm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scrotwm.c b/scrotwm.c index 8af80e4..5a1a764 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -1696,6 +1696,8 @@ resize(struct ws_win *win) break; } } while (ev.type != ButtonRelease); + XWarpPointer(display, None, win->id, 0, 0, 0, 0, win->g.w - 1, + win->g.h - 1); XUngrabPointer(display, CurrentTime); /* drain events */ -- 1.7.10.4