Don't replay clicks that were on the frame window.

This commit is contained in:
Kris Maglione 2007-02-22 15:12:36 -05:00
parent e1e4450a41
commit 5a070d4d6f
1 changed files with 6 additions and 3 deletions

View File

@ -63,7 +63,7 @@ buttonpress(XEvent *e) {
focus(f->client, True);
break;
default: break;
XAllowEvents(blz.dpy, ReplayPointer, CurrentTime);
XAllowEvents(blz.dpy, ReplayPointer, ev->time);
}
}else{
if(ev->button == Button1) {
@ -78,10 +78,13 @@ buttonpress(XEvent *e) {
if(f->client != sel_client())
focus(f->client, True);
}
XAllowEvents(blz.dpy, ReplayPointer, CurrentTime);
if(ev->subwindow)
XAllowEvents(blz.dpy, ReplayPointer, ev->time);
else
XAllowEvents(blz.dpy, AsyncPointer, ev->time);
}
}else
XAllowEvents(blz.dpy, ReplayPointer, CurrentTime);
XAllowEvents(blz.dpy, ReplayPointer, ev->time);
}
static void