changeset: 1815:0a0aaf7b92bc
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Fri Feb 09 16:42:03 2007 -0500
summary: Improved upon last commit
diff -r b88f9d4ea32e -r 0a0aaf7b92bc event.c
--- a/event.c Fri Feb 09 16:28:14 2007 -0500
+++ b/event.c Fri Feb 09 16:42:03 2007 -0500
@@ -35,10 +35,8 @@ buttonrelease(XEvent *e) {
return;
}
}
- else if((f = frame_of_win(ev->window))) {
+ else if((f = frame_of_win(ev->window)))
write_event("ClientClick 0x%x %d\n", f->client->win, ev->button);
- XAllowEvents(blz.dpy, ReplayPointer, ev->time);
- }
}
static void
@@ -49,7 +47,7 @@ buttonpress(XEvent *e) {
ev = &e->xbutton;
if((f = frame_of_win(ev->window))) {
- inclient = ispointinrect(ev->x, ev->y, &f->client->rect);
+ inclient = (ev->subwindow == f->client->win);
ev->state &= valid_mask;
if((ev->state & def.mod) == def.mod) {
switch(ev->button) {
@@ -65,7 +63,7 @@ buttonpress(XEvent *e) {
frame_to_top(f);
focus(f->client, True);
default:
- XAllowEvents(blz.dpy, ReplayPointer, ev->time);
+ XAllowEvents(blz.dpy, AsyncPointer, ev->time);
break;
}
}else{
Received on Fri Feb 09 2007 - 22:43:17 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:06 UTC