mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-21 20:26:45 +00:00
input: replace remaining GetPairedDevice() with GetMaster()
Wherever it's obvious which device we need (keyboard or pointer), use GetMaster() instead of GetPairedDevice(). It is more reliable in actually getting the device type we want. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
fc16917ad6
commit
35ec24cf24
7 changed files with 20 additions and 27 deletions
|
|
@ -1275,7 +1275,7 @@ xf86PostKeyEventM(DeviceIntPtr device,
|
|||
DeviceIntPtr pointer;
|
||||
|
||||
/* Some pointers send key events, paired device is wrong then. */
|
||||
pointer = IsPointerDevice(device) ? device : GetPairedDevice(device);
|
||||
pointer = GetMaster(device, POINTER_OR_FLOAT);
|
||||
if (miPointerGetScreen(pointer)) {
|
||||
int index = miPointerGetScreen(pointer)->myNum;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue