add usleep() call to newWindow(); a delay is needed now (for whatever reason) to give urxvt time to properly handle a resize event

This commit is contained in:
Iris Lightshard 2020-02-29 00:44:42 -05:00
parent cbd09d0751
commit ae6903668b
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

View file

@ -5,6 +5,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <time.h>
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xos.h> #include <X11/Xos.h>
#include <X11/Xlib.h> #include <X11/Xlib.h>
@ -287,6 +288,7 @@ newwindow(XCreateWindowEvent *e)
} }
if (kbLaunch) if (kbLaunch)
{ {
usleep(100000);
quickreshape(c, c->screen->width/5, c->screen->height/5, 3*c->screen->width/5, 3*c->screen->height/5); quickreshape(c, c->screen->width/5, c->screen->height/5, 3*c->screen->width/5, 3*c->screen->height/5);
kbLaunch = 0; kbLaunch = 0;
} }