mirror of git://git.suckless.org/dwm
applied anudots [un]ban repair patch
This commit is contained in:
parent
b3419f49a3
commit
5a1a2edf0e
3
client.c
3
client.c
|
@ -216,8 +216,7 @@ manage(Window w, XWindowAttributes *wa) {
|
||||||
c->isfloating = (rettrans == Success) || c->isfixed;
|
c->isfloating = (rettrans == Success) || c->isfixed;
|
||||||
attach(c);
|
attach(c);
|
||||||
attachstack(c);
|
attachstack(c);
|
||||||
c->isbanned = True;
|
ban(c);
|
||||||
XMoveWindow(dpy, w, c->x + 2 * sw, c->y);
|
|
||||||
XMapWindow(dpy, w);
|
XMapWindow(dpy, w);
|
||||||
setclientstate(c, NormalState);
|
setclientstate(c, NormalState);
|
||||||
focus(c);
|
focus(c);
|
||||||
|
|
4
layout.c
4
layout.c
|
@ -88,9 +88,7 @@ floating(void) {
|
||||||
|
|
||||||
for(c = clients; c; c = c->next)
|
for(c = clients; c; c = c->next)
|
||||||
if(isvisible(c)) {
|
if(isvisible(c)) {
|
||||||
if(c->isbanned)
|
unban(c);
|
||||||
XMoveWindow(dpy, c->win, c->x, c->y);
|
|
||||||
c->isbanned = False;
|
|
||||||
resize(c, c->x, c->y, c->w, c->h, True);
|
resize(c, c->x, c->y, c->w, c->h, True);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
3
main.c
3
main.c
|
@ -38,8 +38,7 @@ static void
|
||||||
cleanup(void) {
|
cleanup(void) {
|
||||||
close(STDIN_FILENO);
|
close(STDIN_FILENO);
|
||||||
while(stack) {
|
while(stack) {
|
||||||
if(stack->isbanned)
|
unban(stack);
|
||||||
XMoveWindow(dpy, stack->win, stack->x, stack->y);
|
|
||||||
unmanage(stack);
|
unmanage(stack);
|
||||||
}
|
}
|
||||||
if(dc.font.set)
|
if(dc.font.set)
|
||||||
|
|
Loading…
Reference in New Issue