Skip to content

Fix incorrect relative mouse xinput2 reports #7316

@iacore

Description

@iacore

How to file a helpful issue

Qubes OS release

r4.1

Brief summary

RawMotion in X represents relative motion of mouse. However, the current linux client gui agent put absolute positions for the fields. It makes some games think you are moving the mouse ridiculously fast.

Steps to reproduce

  1. Run xinput test-xi2 in a client VM
  2. Maximize the terminal window
  3. Move the mouse slowly

Expected behavior

You should see something like the following in the terminal.

EVENT type 17 (RawMotion)
    device: 2 (6)
    detail: 0
    flags: 
    valuators:
          0: 0.43 (0.43)
          1: -0.10 (-0.10)

"valuators" are (x, y) pixels moved relative to the last RawMotion event

Actual behavior

EVENT type 17 (RawMotion)
    device: 2 (6)
    detail: 0
    flags: 
    valuators:
          0: 1000.00 (1000.00)
          1: 510.00 (510.00)

"valuators" are the same as Motion "valuators". This is clearly not right.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions