client_attach and detach are together <3
This commit is contained in:
parent
8a1633ccbe
commit
e7da450d3c
26
client.c
26
client.c
|
@ -230,19 +230,6 @@ client_swap(Client **head, Client *c1, Client *c2)
|
|||
*head = c2;
|
||||
}
|
||||
|
||||
/** Attach client to the beginning of the clients stack
|
||||
* \param head client list
|
||||
* \param c the client
|
||||
*/
|
||||
void
|
||||
client_attach(Client **head, Client *c)
|
||||
{
|
||||
if(*head)
|
||||
(*head)->prev = c;
|
||||
c->next = *head;
|
||||
*head = c;
|
||||
}
|
||||
|
||||
void
|
||||
updatetitle(Client *c)
|
||||
{
|
||||
|
@ -284,6 +271,19 @@ configure(Client * c)
|
|||
XSendEvent(c->display, c->win, False, StructureNotifyMask, (XEvent *) & ce);
|
||||
}
|
||||
|
||||
/** Attach client to the beginning of the clients stack
|
||||
* \param head client list
|
||||
* \param c the client
|
||||
*/
|
||||
void
|
||||
client_attach(Client **head, Client *c)
|
||||
{
|
||||
if(*head)
|
||||
(*head)->prev = c;
|
||||
c->next = *head;
|
||||
*head = c;
|
||||
}
|
||||
|
||||
/** Detach client from clients list
|
||||
* \param head client list
|
||||
* \param c client to detach
|
||||
|
|
Loading…
Reference in New Issue