Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
removing all EnterNotifys after resize
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
418e986
..
938655d
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-82,7
+82,10
@@
resizemouse(Client *c) {
switch(ev.type) {
case ButtonRelease:
resize(c, True);
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);
XUngrabPointer(dpy, CurrentTime);
+ while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
return;
case ConfigureRequest:
case Expose:
return;
case ConfigureRequest:
case Expose:
@@
-308,10
+311,6
@@
propertynotify(XEvent *e) {
if(ev->state == PropertyDelete)
return; /* ignore */
if((c = getclient(ev->window))) {
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:
switch (ev->atom) {
default: break;
case XA_WM_TRANSIENT_FOR: