X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/e1deda9e040c052af62aecc2fb4ee770fb2496a2..5a1a2edf0e584e660e16d2e01094851e0f9161e2:/client.c diff --git a/client.c b/client.c index e670cc8..06bc9d8 100644 --- a/client.c +++ b/client.c @@ -1,7 +1,4 @@ -/* © 2006-2007 Anselm R. Garbe - * © 2006-2007 Sander van Dijk - * © 2007 Premysl Hruby - * See LICENSE file for license details. */ +/* See LICENSE file for copyright and license details. */ #include "dwm.h" #include #include @@ -130,7 +127,7 @@ detach(Client *c) { void focus(Client *c) { - if( !c && selscreen || c && !isvisible(c)) + if((!c && selscreen)|| (c && !isvisible(c))) for(c = stack; c && !isvisible(c); c = c->snext); if(sel && sel != c) { grabbuttons(sel, False); @@ -219,8 +216,7 @@ manage(Window w, XWindowAttributes *wa) { c->isfloating = (rettrans == Success) || c->isfixed; attach(c); attachstack(c); - c->isbanned = True; - XMoveWindow(dpy, w, c->x + 2 * sw, c->y); + ban(c); XMapWindow(dpy, w); setclientstate(c, NormalState); focus(c);