diff options
author | Egbert Eich <eich@freedesktop.org> | 2014-02-12 19:27:26 +0100 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-02-13 08:01:20 +1000 |
commit | 3083d6f51221ce6ab56eb14b71bbda08c320efc1 (patch) | |
tree | c20817a053d85faac9717e4e4502a2027fb6a4b1 | |
parent | b2cde1725132e0f0f3cdd2019745d130235282c3 (diff) |
Add event filter for button events
Signed-off-by: Egbert Eich <eich@freedesktop.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | man/xev.man | 2 | ||||
-rw-r--r-- | xev.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/man/xev.man b/man/xev.man index 4edec10..ba70463 100644 --- a/man/xev.man +++ b/man/xev.man @@ -62,7 +62,7 @@ The option can be specified multiple times to select multiple types of events. When not specified, all events are selected. Available event masks: keyboard mouse expose visibility structure substructure -focus property colormap owner_grab_button randr +focus property colormap owner_grab_button randr button .TP 8 .B \-version This option prints the program version and exits. @@ -890,7 +890,7 @@ usage (const char *errmsg) " -event event_mask select 'event_mask' events", " Supported event masks: keyboard mouse expose visibility structure", " substructure focus property colormap", -" owner_grab_button randr", +" owner_grab_button randr button", " This option can be specified multiple times to select multiple", " event masks.", "", @@ -940,6 +940,9 @@ parse_event_mask (const char *s, long event_masks[]) LeaveWindowMask | PointerMotionMask | Button1MotionMask | Button2MotionMask | Button3MotionMask | Button4MotionMask | Button5MotionMask | ButtonMotionMask }, + { "button", + EVENT_MASK_INDEX_CORE, + ButtonPressMask | ButtonReleaseMask }, { "expose", EVENT_MASK_INDEX_CORE, ExposureMask }, |