X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/87836d79ef90e6c764d94c229183179a36eb699a..7055315725c66eea7861137d9146d10d62d4cee1:/event.c?ds=sidebyside diff --git a/event.c b/event.c index 418e986..cfe2d2a 100644 --- a/event.c +++ b/event.c @@ -82,6 +82,8 @@ resizemouse(Client *c) { switch(ev.type) { case ButtonRelease: resize(c, True); + XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, + c->w + c->border - 1, c->h + c->border - 1); XUngrabPointer(dpy, CurrentTime); return; case ConfigureRequest: @@ -308,10 +310,6 @@ propertynotify(XEvent *e) { if(ev->state == PropertyDelete) return; /* ignore */ if((c = getclient(ev->window))) { - if(ev->atom == wmatom[WMProtocols]) { - c->proto = getproto(c->win); - return; - } switch (ev->atom) { default: break; case XA_WM_TRANSIENT_FOR: