From 3083d6f51221ce6ab56eb14b71bbda08c320efc1 Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Wed, 12 Feb 2014 19:27:26 +0100 Subject: Add event filter for button events Signed-off-by: Egbert Eich Signed-off-by: Peter Hutterer --- xev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xev.c') diff --git a/xev.c b/xev.c index 45c283f..6cde09a 100644 --- a/xev.c +++ b/xev.c @@ -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 }, -- cgit v1.2.3