buttonpress.c (308B)
1 /* Copyright ©2006-2010 Kris Maglione <maglione.k at Gmail> 2 * See LICENSE file for license details. 3 */ 4 #include "event.h" 5 6 void 7 event_buttonpress(XButtonPressedEvent *ev) { 8 Window *w; 9 10 if((w = findwin(ev->window))) 11 event_handle(w, bdown, ev); 12 else 13 XAllowEvents(display, ReplayPointer, ev->time); 14 }