xkb: Keyboard mouse button emulation should not suppress other keyboard events

With this change, when a key mapped to an action to emulate mouse button
presses and releases is held down, other keys pressed during that time are
still processed normally.  This is a prerequisite for proper support of
ISOLock.

Signed-off-by: Andreas Wettstein <wettstein509@solnet.ch>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
Andreas Wettstein 2014-02-15 17:37:24 +01:00 committed by Adam Jackson
parent 5447ac45bc
commit f937032ee6

View File

@ -639,6 +639,7 @@ _XkbFilterPointerBtn(XkbSrvInfoPtr xkbi,
} }
break; break;
} }
return 0;
} }
else if (filter->keycode == keycode) { else if (filter->keycode == keycode) {
int button = filter->upAction.btn.button; int button = filter->upAction.btn.button;
@ -664,8 +665,9 @@ _XkbFilterPointerBtn(XkbSrvInfoPtr xkbi,
break; break;
} }
filter->active = 0; filter->active = 0;
return 0;
} }
return 0; return 1;
} }
static int static int