From ae6903668b4cd2141cf261790ad27a16f25c1498 Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Sat, 29 Feb 2020 00:44:42 -0500 Subject: [PATCH] add usleep() call to newWindow(); a delay is needed now (for whatever reason) to give urxvt time to properly handle a resize event --- event.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/event.c b/event.c index d6fa2a1..d6f9425 100755 --- a/event.c +++ b/event.c @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -287,6 +288,7 @@ newwindow(XCreateWindowEvent *e) } if (kbLaunch) { + usleep(100000); quickreshape(c, c->screen->width/5, c->screen->height/5, 3*c->screen->width/5, 3*c->screen->height/5); kbLaunch = 0; }