From e2e36e54034a8b834a68bf2178d000eb63daa88c Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Thu, 25 Feb 2021 14:28:19 -0500 Subject: [PATCH] manage.c: fix libreoffice splash screen crash and windows starting out of focus --- manage.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/manage.c b/manage.c index 0586ee8..7fbf03d 100755 --- a/manage.c +++ b/manage.c @@ -16,6 +16,7 @@ #include #include #include +#include "config.h" #include "dat.h" #include "fns.h" @@ -178,8 +179,13 @@ manage(Client *c, int mapped) XMapWindow(dpy, c->window); XMapWindow(dpy, c->parent); XUnmapWindow(dpy, c->screen->sweepwin); - if(nostalgia || doreshape) +#ifdef AUTOSTICK + if(c->class && !isautostick(c)) active(c); +#else + if(c->class) + active(c); +#endif else if(c->trans != None && current && current->window == c->trans) active(c); else