client_attach and detach are together <3

This commit is contained in:
Julien Danjou 2007-10-17 12:12:40 +02:00
parent 8a1633ccbe
commit e7da450d3c
1 changed files with 13 additions and 13 deletions

View File

@ -230,19 +230,6 @@ client_swap(Client **head, Client *c1, Client *c2)
*head = 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 void
updatetitle(Client *c) updatetitle(Client *c)
{ {
@ -284,6 +271,19 @@ configure(Client * c)
XSendEvent(c->display, c->win, False, StructureNotifyMask, (XEvent *) & ce); 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 /** Detach client from clients list
* \param head client list * \param head client list
* \param c client to detach * \param c client to detach