Ignore ClientClick events that pass through client windows.

This commit is contained in:
Kris Maglione 2010-05-28 12:46:48 -04:00
parent b2ea1da6ba
commit 6be3355002
2 changed files with 3 additions and 2 deletions

View File

@ -140,7 +140,8 @@ bup_event(Window *w, void *aux, XButtonEvent *e) {
XAllowEvents(display, ReplayPointer, e->time); XAllowEvents(display, ReplayPointer, e->time);
else else
XUngrabPointer(display, e->time); XUngrabPointer(display, e->time);
event("ClientClick %#C %d\n", aux, e->button); if(!e->subwindow)
event("ClientClick %#C %d\n", aux, e->button);
return false; return false;
} }

View File

@ -23,6 +23,6 @@ CFLAGS += \
-Wreturn-type \ -Wreturn-type \
-Wstrict-prototypes \ -Wstrict-prototypes \
-Wtrigraphs -Wtrigraphs
MKDEP = cpp -MM MKDEP = cpp -M
SOCFLAGS += -fPIC SOCFLAGS += -fPIC