remove useless client_reattach_after()
This commit is contained in:
parent
078d224b46
commit
14809f80e4
21
client.c
21
client.c
|
@ -153,27 +153,6 @@ client_ban(Client * c)
|
|||
window_setstate(c->display, c->win, IconicState);
|
||||
}
|
||||
|
||||
/** Attach client after another one
|
||||
* \param client to attach to
|
||||
* \param c the client
|
||||
*/
|
||||
void
|
||||
client_reattach_after(Client *head, Client *c)
|
||||
{
|
||||
if(head->next == c)
|
||||
return;
|
||||
|
||||
if(head->next)
|
||||
head->next->prev = c;
|
||||
|
||||
if(c->prev)
|
||||
c->prev->next = c->next;
|
||||
|
||||
c->next = head->next;
|
||||
head->next = c;
|
||||
c->prev = head;
|
||||
}
|
||||
|
||||
/** Attach client to the beginning of the clients stack
|
||||
* \param head client list
|
||||
* \param c the client
|
||||
|
|
1
client.h
1
client.h
|
@ -27,7 +27,6 @@
|
|||
Client * get_client_bywin(Client *, Window);
|
||||
void client_attach(Client **, Client *);
|
||||
void client_detach(Client **, Client *);
|
||||
void client_reattach_after(Client *, Client *);
|
||||
void client_ban(Client *);
|
||||
void focus(Client *, Bool, awesome_config *, int);
|
||||
void client_manage(Window, XWindowAttributes *, awesome_config *, int);
|
||||
|
|
Loading…
Reference in New Issue