JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Move mouse back onto the border to retain focus on resized window.
authorMarco Peereboom <marco@conformal.com>
Thu, 29 Jan 2009 21:41:00 +0000 (21:41 +0000)
committerMarco Peereboom <marco@conformal.com>
Thu, 29 Jan 2009 21:41:00 +0000 (21:41 +0000)
scrotwm.c

index 8af80e4..5a1a764 100644 (file)
--- 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 */