diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-10-11 16:03:33 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-11-07 09:58:54 +1000 |
commit | 11319a922575f1da1d3c5774728c0dee12bab069 (patch) | |
tree | 32dffc486bc4523a6bcef9ebaa07c4b3648b0f01 /Xi | |
parent | 9ddc6ad9d02d886c1dba0496fc9480db64529bf2 (diff) |
xkb: ProcesssPointerEvent must work on the VCP if it gets the VCP
For button release events, the current code picks the VCK. Because that has
a XKB struct, it thinks this is a PointerKeys event and proceeds to send the
release event through the XTest pointer. That has no effect in normal
operation as the button is never down and an attempt is silently discarded
(normal event processing continues with the VCP).
On server shutdown, the XTest device is already removed, leading to a
null-pointer derefernce when the device is checked for whether buttons are
down (XkbFakeDeviceButton → button_is_down(xtest pointer)).
The current state has only worked by accident, the right approach here is to
handle the VCP's event as such and not switch to the keyboard.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 2decff6393a44b56d80d53570718f95354fde454)
Diffstat (limited to 'Xi')
0 files changed, 0 insertions, 0 deletions