From a9e8c34755d6c0e05cb0a204f06480cfbd353994 Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 28 Sep 2016 15:54:54 +0000 Subject: Do not call sweep_draw() too early: don't yet have w/h dimensions; plus we will get a MotionNotify event right away anyway, setting required parameters. --- mousefunc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mousefunc.c b/mousefunc.c index 8fa3c82..047b825 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: mousefunc.c,v 1.105 2016/09/22 14:36:03 okan Exp $ + * $OpenBSD: mousefunc.c,v 1.106 2016/09/28 15:54:54 okan Exp $ */ #include @@ -68,7 +68,6 @@ mousefunc_client_resize(struct client_ctx *cc, union arg *arg) return; xu_ptr_setpos(cc->win, cc->geom.w, cc->geom.h); - mousefunc_sweep_draw(cc); for (;;) { XMaskEvent(X_Dpy, MOUSEMASK, &ev); -- cgit v1.2.3-2-gb3c3