move tabbed windows collapsed in **clients list, so focusing next/prev will be nicer
This commit is contained in:
parent
e7da450d3c
commit
02c07a8e11
21
client.c
21
client.c
|
@ -271,6 +271,27 @@ configure(Client * c)
|
|||
XSendEvent(c->display, c->win, False, StructureNotifyMask, (XEvent *) & ce);
|
||||
}
|
||||
|
||||
/** 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
|
@ -31,6 +31,7 @@ Client * get_client_bywin(Client **, Window);
|
|||
void grabbuttons(Client *, Bool, Bool, KeySym, unsigned int);
|
||||
inline void client_attach(Client **, Client *);
|
||||
inline void client_detach(Client **, Client *);
|
||||
void client_reattach_after(Client *, Client *);
|
||||
void ban(Client *); /* bans c */
|
||||
void configure(Client *); /* send synthetic configure event */
|
||||
void focus(Client *, Bool, awesome_config *);
|
||||
|
|
Loading…
Reference in New Issue