forked from mirror/dwm
no this is better
This commit is contained in:
parent
fd00b3a186
commit
a33150eb4b
2 changed files with 11 additions and 11 deletions
7
client.c
7
client.c
|
@ -99,13 +99,6 @@ focus(Client *c)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(c) {
|
if(c) {
|
||||||
if(c->isfloat || arrange == dofloat) {
|
|
||||||
detach(c);
|
|
||||||
if(clients)
|
|
||||||
clients->prev = c;
|
|
||||||
c->next = clients;
|
|
||||||
clients = c;
|
|
||||||
}
|
|
||||||
grabbuttons(c, True);
|
grabbuttons(c, True);
|
||||||
drawtitle(c);
|
drawtitle(c);
|
||||||
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
|
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
|
||||||
|
|
15
view.c
15
view.c
|
@ -18,6 +18,15 @@ minclient()
|
||||||
return min;
|
return min;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
pop(Client *c)
|
||||||
|
{
|
||||||
|
detach(c);
|
||||||
|
if(clients)
|
||||||
|
clients->prev = c;
|
||||||
|
c->next = clients;
|
||||||
|
clients = c;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
reorder()
|
reorder()
|
||||||
|
@ -223,6 +232,7 @@ restack()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(sel->isfloat || arrange == dofloat) {
|
if(sel->isfloat || arrange == dofloat) {
|
||||||
|
pop(sel);
|
||||||
XRaiseWindow(dpy, sel->win);
|
XRaiseWindow(dpy, sel->win);
|
||||||
XRaiseWindow(dpy, sel->twin);
|
XRaiseWindow(dpy, sel->twin);
|
||||||
}
|
}
|
||||||
|
@ -297,10 +307,7 @@ zoom(Arg *arg)
|
||||||
if((c = sel) == nexttiled(clients))
|
if((c = sel) == nexttiled(clients))
|
||||||
if(!(c = nexttiled(c->next)))
|
if(!(c = nexttiled(c->next)))
|
||||||
return;
|
return;
|
||||||
detach(c);
|
pop(c);
|
||||||
c->next = clients;
|
|
||||||
clients->prev = c;
|
|
||||||
clients = c;
|
|
||||||
focus(c);
|
focus(c);
|
||||||
arrange(NULL);
|
arrange(NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue