From: Marco Peereboom Date: Thu, 29 Jan 2009 21:41:00 +0000 (+0000) Subject: Move mouse back onto the border to retain focus on resized window. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;ds=inline;h=0cde83bdc3faf039c3953ee0315851a8fc4b7303;p=spectrwm.git Move mouse back onto the border to retain focus on resized window. --- 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 */