client: Fix raise and unmanage

This commit is contained in:
Martin Duquesnoy
2008-10-26 17:09:29 +01:00
parent 3fbfbc08c3
commit c0801d1c27

View File

@@ -267,9 +267,9 @@ client_manage(Window w, XWindowAttributes *wa)
c->free = (rettrans == Success) || c->hint;
else
client_raise(c);
efree(t);
client_attach(c);
XMoveResizeWindow(dpy, c->win, c->geo.x, c->geo.y, c->geo.width, c->geo.height);
client_map(c);
@@ -427,7 +427,7 @@ client_size_hints(Client *c)
void
client_raise(Client *c)
{
if(!c || !c->free)
if(!c || c->tile || c->max)
return;
XRaiseWindow(dpy, c->win);
@@ -477,7 +477,7 @@ client_unmanage(Client *c)
if(conf.titlebar.exist)
bar_delete(c->tbar);
efree(c);
XSetErrorHandler(errorhandler);
arrange();
return;