Client: Add option in client_manage to arrange or not.
This commit is contained in:
parent
51cccecaeb
commit
4380d64da1
@ -405,7 +405,7 @@ client_map(Client *c)
|
|||||||
* \return The managed client
|
* \return The managed client
|
||||||
*/
|
*/
|
||||||
Client*
|
Client*
|
||||||
client_manage(Window w, XWindowAttributes *wa)
|
client_manage(Window w, XWindowAttributes *wa, Bool ar)
|
||||||
{
|
{
|
||||||
Client *c, *t = NULL;
|
Client *c, *t = NULL;
|
||||||
Window trans;
|
Window trans;
|
||||||
@ -480,7 +480,8 @@ client_manage(Window w, XWindowAttributes *wa)
|
|||||||
client_set_wanted_tag(c);
|
client_set_wanted_tag(c);
|
||||||
client_update_attributes(c);
|
client_update_attributes(c);
|
||||||
|
|
||||||
arrange(c->screen);
|
if(ar)
|
||||||
|
arrange(c->screen);
|
||||||
|
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -436,7 +436,7 @@ maprequest(XMapRequestEvent *ev)
|
|||||||
CHECK(!at.override_redirect);
|
CHECK(!at.override_redirect);
|
||||||
|
|
||||||
if(!(c = client_gb_win(ev->window)))
|
if(!(c = client_gb_win(ev->window)))
|
||||||
client_manage(ev->window, &at);
|
client_manage(ev->window, &at, True);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -218,7 +218,7 @@ scan(void)
|
|||||||
XFree(ret);
|
XFree(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
c = client_manage(w[i], &wa);
|
c = client_manage(w[i], &wa, False);
|
||||||
|
|
||||||
if(tag != -1)
|
if(tag != -1)
|
||||||
c->tag = tag;
|
c->tag = tag;
|
||||||
|
|||||||
@ -141,7 +141,7 @@ void client_hide(Client *c);
|
|||||||
void client_kill(Client *c);
|
void client_kill(Client *c);
|
||||||
Bool ishide(Client *c, int screen);
|
Bool ishide(Client *c, int screen);
|
||||||
void client_map(Client *c);
|
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_moveresize(Client *c, XRectangle geo, Bool r);
|
||||||
void client_maximize(Client *c);
|
void client_maximize(Client *c);
|
||||||
void client_size_hints(Client *c);
|
void client_size_hints(Client *c);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user