manage.c: fix libreoffice splash screen crash and windows starting out of focus
This commit is contained in:
parent
3a2f736ce5
commit
e2e36e5403
1 changed files with 7 additions and 1 deletions
8
manage.c
8
manage.c
|
@ -16,6 +16,7 @@
|
|||
#include <X11/Xutil.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <X11/extensions/shape.h>
|
||||
#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
|
||||
|
|
Loading…
Reference in a new issue