X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/36672d0401299a5230b516ca4575365d9f45dd35..9800518ae3505e54c0e52ea3d40050f279e722d6:/client.c?ds=sidebyside diff --git a/client.c b/client.c index 9dd08b1..c716625 100644 --- a/client.c +++ b/client.c @@ -1,7 +1,6 @@ /* See LICENSE file for copyright and license details. */ #include "dwm.h" #include -#include #include /* static */ @@ -146,7 +145,7 @@ focus(Client *c) { grabbuttons(c, True); } sel = c; - drawstatus(); + drawbar(); if(!selscreen) return; if(c) { @@ -230,6 +229,7 @@ manage(Window w, XWindowAttributes *wa) { XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); /* some windows require this */ ban(c); XMapWindow(dpy, c->win); + setclientstate(c, NormalState); arrange(); }