Guest User

Untitled

a guest
Jun 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. diff --git a/Xi/listdev.c b/Xi/listdev.c
  2. index 1c847fb..cbc5a0c 100644
  3. --- a/Xi/listdev.c
  4. +++ b/Xi/listdev.c
  5. @@ -315,8 +315,10 @@ ListDeviceInfo(ClientPtr client, DeviceIntPtr d, xDeviceInfoPtr dev,
  6. static Bool
  7. ShouldSkipDevice(ClientPtr client, DeviceIntPtr d)
  8. {
  9. - /* don't send master devices other than VCP/VCK */
  10. - if (!IsMaster(d) || d == inputInfo.pointer || d == inputInfo.keyboard)
  11. + /* don't send master devices other than VCP/VCK, only
  12. + send floating slave devices. */
  13. + if (!IsMaster(d) || d == inputInfo.pointer || d == inputInfo.keyboard ||
  14. + GetMaster(d, MASTER_POINTER) == NULL)
  15. {
  16. int rc = XaceHook(XACE_DEVICE_ACCESS, client, d, DixGetAttrAccess);
  17. if (rc == Success)
Add Comment
Please, Sign In to add comment