pop on heretag
This commit is contained in:
parent
4f8b08d330
commit
0aaa9a21f3
21
client.c
21
client.c
|
@ -267,6 +267,18 @@ maximize(Arg *arg)
|
||||||
resize(sel, False);
|
resize(sel, False);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
pop(Client *c)
|
||||||
|
{
|
||||||
|
Client **l;
|
||||||
|
for(l = &clients; *l && *l != c; l = &(*l)->next);
|
||||||
|
*l = c->next;
|
||||||
|
|
||||||
|
c->next = clients; /* pop */
|
||||||
|
clients = c;
|
||||||
|
arrange(NULL);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
resize(Client *c, Bool inc)
|
resize(Client *c, Bool inc)
|
||||||
{
|
{
|
||||||
|
@ -405,7 +417,7 @@ unmanage(Client *c)
|
||||||
void
|
void
|
||||||
zoom(Arg *arg)
|
zoom(Arg *arg)
|
||||||
{
|
{
|
||||||
Client **l, *c;
|
Client *c;
|
||||||
|
|
||||||
if(!sel)
|
if(!sel)
|
||||||
return;
|
return;
|
||||||
|
@ -415,11 +427,6 @@ zoom(Arg *arg)
|
||||||
sel = c;
|
sel = c;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(l = &clients; *l && *l != sel; l = &(*l)->next);
|
pop(sel);
|
||||||
*l = sel->next;
|
|
||||||
|
|
||||||
sel->next = clients; /* pop */
|
|
||||||
clients = sel;
|
|
||||||
arrange(NULL);
|
|
||||||
focus(sel);
|
focus(sel);
|
||||||
}
|
}
|
||||||
|
|
1
dwm.h
1
dwm.h
|
@ -118,6 +118,7 @@ extern void killclient(Arg *arg);
|
||||||
extern void lower(Client *c);
|
extern void lower(Client *c);
|
||||||
extern void manage(Window w, XWindowAttributes *wa);
|
extern void manage(Window w, XWindowAttributes *wa);
|
||||||
extern void maximize(Arg *arg);
|
extern void maximize(Arg *arg);
|
||||||
|
extern void pop(Client *c);
|
||||||
extern void resize(Client *c, Bool inc);
|
extern void resize(Client *c, Bool inc);
|
||||||
extern void setsize(Client *c);
|
extern void setsize(Client *c);
|
||||||
extern void settitle(Client *c);
|
extern void settitle(Client *c);
|
||||||
|
|
Loading…
Reference in a new issue