mirror of
https://github.com/0intro/wmii
synced 2024-11-22 22:02:30 +03:00
10 lines
193 B
C
10 lines
193 B
C
|
#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];
|
||
|
|