Move mouse back onto the border to retain focus on resized window.

This commit is contained in:
Marco Peereboom 2009-01-29 21:41:00 +00:00
parent 0139236e71
commit 0cde83bdc3

View file

@ -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 */