wmii/lib/libstuff/event/buttonpress.c

15 lines
308 B
C

/* Copyright ©2006-2010 Kris Maglione <maglione.k at Gmail>
* See LICENSE file for license details.
*/
#include "event.h"
void
event_buttonpress(XButtonPressedEvent *ev) {
Window *w;
if((w = findwin(ev->window)))
event_handle(w, bdown, ev);
else
XAllowEvents(display, ReplayPointer, ev->time);
}