diff options
| author | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-14 13:03:53 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-14 13:03:53 +0200 |
| commit | a1d0f819661f2be48f7a03ddd001f2a1a8f325e4 (patch) | |
| tree | 94fb44049473e55b93f1d5b6baedd561c4c83a50 /event.c | |
| parent | focus on view change as well (diff) | |
| download | dwm-a1d0f819661f2be48f7a03ddd001f2a1a8f325e4.tar.gz dwm-a1d0f819661f2be48f7a03ddd001f2a1a8f325e4.zip | |
searching for a better way to discard enter notifies
Diffstat (limited to 'event.c')
| -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 | { |
