From d22abeee867397c366f69cf89524b94e01c2e0e2 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Wed, 6 Sep 2006 17:31:52 +0200 Subject: this patch keeps track of global z-layer order of clients which are floating or if floating mode is enabled --- view.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/view.c b/view.c index eddf2da..9ee4c78 100644 --- a/view.c +++ b/view.c @@ -12,22 +12,14 @@ minclient() { Client *c, *min; + if((clients && clients->isfloat) || arrange == dofloat) + return clients; /* don't touch floating order */ for(min = c = clients; c; c = c->next) if(c->weight < min->weight) min = c; return min; } -static void -pop(Client *c) -{ - detach(c); - if(clients) - clients->prev = c; - c->next = clients; - clients = c; -} - static void reorder() { @@ -232,7 +224,6 @@ restack() return; } if(sel->isfloat || arrange == dofloat) { - pop(sel); XRaiseWindow(dpy, sel->win); XRaiseWindow(dpy, sel->twin); } @@ -307,7 +298,11 @@ zoom(Arg *arg) if((c = sel) == nexttiled(clients)) if(!(c = nexttiled(c->next))) return; - pop(c); + detach(c); + if(clients) + clients->prev = c; + c->next = clients; + clients = c; focus(c); arrange(NULL); } -- cgit 1.4.1-2-gfad0 6b704914fcdcb82c'>refs log blame commit diff stats
path: root/widgets/tabhost.go
blob: 0ac67e5b6997990da6cc5ef658bfdcdb54ba9e37 (plain) (tree)
1
2
3
4
5
6
7
8
9