wmii/lib/libstuff/event/buttonpress.c
2010-05-27 03:58:02 -04:00

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);
}