Client: Add option in client_manage to arrange or not.

This commit is contained in:
Martin Duquesnoy 2009-04-23 19:57:56 +02:00
parent 51cccecaeb
commit 4380d64da1
4 changed files with 6 additions and 5 deletions

View File

@ -405,7 +405,7 @@ client_map(Client *c)
* \return The managed client
*/
Client*
client_manage(Window w, XWindowAttributes *wa)
client_manage(Window w, XWindowAttributes *wa, Bool ar)
{
Client *c, *t = NULL;
Window trans;
@ -480,7 +480,8 @@ client_manage(Window w, XWindowAttributes *wa)
client_set_wanted_tag(c);
client_update_attributes(c);
arrange(c->screen);
if(ar)
arrange(c->screen);
return c;
}

View File

@ -436,7 +436,7 @@ maprequest(XMapRequestEvent *ev)
CHECK(!at.override_redirect);
if(!(c = client_gb_win(ev->window)))
client_manage(ev->window, &at);
client_manage(ev->window, &at, True);
return;
}

View File

@ -218,7 +218,7 @@ scan(void)
XFree(ret);
}
c = client_manage(w[i], &wa);
c = client_manage(w[i], &wa, False);
if(tag != -1)
c->tag = tag;

View File

@ -141,7 +141,7 @@ void client_hide(Client *c);
void client_kill(Client *c);
Bool ishide(Client *c, int screen);
void client_map(Client *c);
Client* client_manage(Window w, XWindowAttributes *wa);
Client* client_manage(Window w, XWindowAttributes *wa, Bool ar);
void client_moveresize(Client *c, XRectangle geo, Bool r);
void client_maximize(Client *c);
void client_size_hints(Client *c);