wmii/lib/libstuff/event/event.h

10 lines
193 B
C
Raw Normal View History

2010-05-22 06:52:47 +04:00
#include <stuff/x.h>
typedef void (*EventHandler)(XEvent*);
#define handle(w, fn, ev) \
BLOCK(if((w)->handler->fn) (w)->handler->fn((w), ev))
extern EventHandler event_handler[LASTEvent];