mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 08:10:14 +01:00
dix: extend IsPointerDevice check to valuator-only devices.
A device with valuators but no keys is definitely a pointer device and needs
to be attached to the VCP. Otherwise, the class copying happens on the VCK
and the VCP isn't updated with the events that are to be sent through it.
This addresses the trigger for #24441, not the actual issue.
Jury is still out on valuator+key devices.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 72f5874434)
This commit is contained in:
parent
f6cb78e476
commit
e116bebb13
1 changed files with 3 additions and 1 deletions
|
|
@ -345,7 +345,9 @@ DevHasCursor(DeviceIntPtr pDev)
|
|||
Bool
|
||||
IsPointerDevice(DeviceIntPtr dev)
|
||||
{
|
||||
return (dev->type == MASTER_POINTER) || (dev->valuator && dev->button);
|
||||
return (dev->type == MASTER_POINTER) ||
|
||||
(dev->valuator && dev->button) ||
|
||||
(dev->valuator && !dev->key);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue