X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/76d7e80fc47f869f177ce694c45d4c8f2e86bdc7..bf9da23f07249cfe8f5a5a5c4256d919b353b10c:/dwm.c diff --git a/dwm.c b/dwm.c index bad06f4..cfe1e7b 100644 --- a/dwm.c +++ b/dwm.c @@ -1015,7 +1015,7 @@ propertynotify(XEvent *e) { Window trans; XPropertyEvent *ev = &e->xproperty; - if((ev->window == root) && (ev->atom = XA_WM_NAME)) + if((ev->window == root) && (ev->atom == XA_WM_NAME)) updatestatus(); else if(ev->state == PropertyDelete) return; /* ignore */ @@ -1349,7 +1349,7 @@ showhide(Client *c, unsigned int ntiled) { if(!c) return; if(ISVISIBLE(c)) { /* show clients top down */ - if(ntiled > 1) /* avoid unnecessary border reverts */ + if(c->isfloating || ntiled > 1) /* avoid unnecessary border reverts */ adjustborder(c, borderpx); XMoveWindow(dpy, c->win, c->x, c->y); if(!lt[sellt]->arrange || c->isfloating) @@ -1708,7 +1708,7 @@ zoom(const Arg *arg) { int main(int argc, char *argv[]) { if(argc == 2 && !strcmp("-v", argv[1])) - die("dwm-"VERSION", © 2006-2008 dwm engineers, see LICENSE for details\n"); + die("dwm-"VERSION", © 2006-2009 dwm engineers, see LICENSE for details\n"); else if(argc != 1) die("usage: dwm [-v]\n");