manage.c: fix libreoffice splash screen crash and windows starting out of focus

This commit is contained in:
Iris Lightshard 2021-02-25 14:28:19 -05:00
parent 3a2f736ce5
commit e2e36e5403
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

View file

@ -16,6 +16,7 @@
#include <X11/Xutil.h> #include <X11/Xutil.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include <X11/extensions/shape.h> #include <X11/extensions/shape.h>
#include "config.h"
#include "dat.h" #include "dat.h"
#include "fns.h" #include "fns.h"
@ -178,8 +179,13 @@ manage(Client *c, int mapped)
XMapWindow(dpy, c->window); XMapWindow(dpy, c->window);
XMapWindow(dpy, c->parent); XMapWindow(dpy, c->parent);
XUnmapWindow(dpy, c->screen->sweepwin); XUnmapWindow(dpy, c->screen->sweepwin);
if(nostalgia || doreshape) #ifdef AUTOSTICK
if(c->class && !isautostick(c))
active(c); active(c);
#else
if(c->class)
active(c);
#endif
else if(c->trans != None && current && current->window == c->trans) else if(c->trans != None && current && current->window == c->trans)
active(c); active(c);
else else