Skip to content

Commit c3bce0c

Browse files
committed
Correctly label pointing device as absolute, not relative
The input device actually reports absolute events, not relative. Interestingly it worked before, probably because of InitAbsoluteClassDeviceStruct, but some applications were confused about mismatching mode. Fixes QubesOS/qubes-issues#7316
1 parent 216a615 commit c3bce0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xf86-input-mfndev/src/qubes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ static int _qubes_init_axes(DeviceIntPtr device)
364364
return BadAlloc;
365365

366366
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 12
367-
pInfo->dev->valuator->mode = Relative;
367+
pInfo->dev->valuator->mode = Absolute;
368368
#endif
369369
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 13
370370
if (!InitAbsoluteClassDeviceStruct(device))
@@ -375,7 +375,7 @@ static int _qubes_init_axes(DeviceIntPtr device)
375375
xf86InitValuatorAxisStruct(device, i, *pQubes->labels, -1,
376376
-1, 1, 1, 1
377377
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
378-
, Relative
378+
, Absolute
379379
#endif
380380
);
381381
xf86InitValuatorDefaults(device, i);

0 commit comments

Comments
 (0)