X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/b4d53bf194f9f9214b6c79d397d723ba53663b4b..8fa47ac679cfd91c022a35f2469bea7396e5f7c7:/event.c?ds=sidebyside diff --git a/event.c b/event.c index 50c59a0..f4ac2d5 100644 --- a/event.c +++ b/event.c @@ -1,4 +1,3 @@ -#include /* * (C)opyright MMVI Anselm R. Garbe * See LICENSE file for license details. @@ -151,10 +150,8 @@ configurerequest(XEvent *e) { unsigned long newmask; Client *c; XConfigureRequestEvent *ev = &e->xconfigurerequest; - XEvent synev; XWindowChanges wc; - fputs("configurerequest\n", stderr); if((c = getclient(ev->window))) { c->ismax = False; gravitate(c, True); @@ -179,8 +176,10 @@ configurerequest(XEvent *e) { else configure(c); XSync(dpy, False); - if(c->isfloat) - resize(c, False, TopLeft); + if(c->isfloat) { + if(isvisible(c)) + resize(c, False, TopLeft); + } else arrange(NULL); } @@ -211,7 +210,6 @@ enternotify(XEvent *e) { Client *c; XCrossingEvent *ev = &e->xcrossing; - fputs("enternotify\n", stderr); if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) return; @@ -299,7 +297,6 @@ propertynotify(XEvent *e) { Window trans; XPropertyEvent *ev = &e->xproperty; - fputs("propertynotify\n", stderr); if(ev->state == PropertyDelete) return; /* ignore */ @@ -321,6 +318,7 @@ propertynotify(XEvent *e) { } if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { updatetitle(c); + resizetitle(c); drawtitle(c); } }