diff options
Diffstat (limited to '')
| -rw-r--r-- | event.c | 8 |
1 files changed, 1 insertions, 7 deletions
| @@ -4,6 +4,7 @@ | |||
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | #include <fcntl.h> | 6 | #include <fcntl.h> |
| 7 | #include <stdio.h> | ||
| 7 | #include <stdlib.h> | 8 | #include <stdlib.h> |
| 8 | #include <string.h> | 9 | #include <string.h> |
| 9 | #include <X11/keysym.h> | 10 | #include <X11/keysym.h> |
| @@ -37,13 +38,6 @@ void (*handler[LASTEvent]) (XEvent *) = { | |||
| 37 | [UnmapNotify] = unmapnotify | 38 | [UnmapNotify] = unmapnotify |
| 38 | }; | 39 | }; |
| 39 | 40 | ||
| 40 | void | ||
| 41 | discard_events(long even_mask) | ||
| 42 | { | ||
| 43 | XEvent ev; | ||
| 44 | while(XCheckMaskEvent(dpy, even_mask, &ev)); | ||
| 45 | } | ||
| 46 | |||
| 47 | static void | 41 | static void |
| 48 | buttonpress(XEvent *e) | 42 | buttonpress(XEvent *e) |
| 49 | { | 43 | { |
