Commit c747672
danalec
linux/input: fix abs->rel cursor feedback (output-local coords + seqlock)
- Publish the cursor position relative to the captured output (no desktop
offset); the consumer compares against touch-port coordinates, which are
output-relative, so adding the offset mis-anchored the estimate on
multi-monitor setups.
- Make the feedback read/write consistent with a seqlock so the input path
never observes a half-updated snapshot (position from one frame, extents
from another).1 parent c37ba50 commit c747672
3 files changed
Lines changed: 46 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
832 | | - | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
833 | 857 | | |
834 | 858 | | |
835 | 859 | | |
836 | 860 | | |
837 | 861 | | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
| 862 | + | |
843 | 863 | | |
844 | 864 | | |
845 | 865 | | |
846 | | - | |
847 | | - | |
848 | | - | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
849 | 869 | | |
850 | 870 | | |
851 | 871 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
92 | | - | |
| 98 | + | |
93 | 99 | | |
94 | 100 | | |
95 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1253 | 1253 | | |
1254 | 1254 | | |
1255 | 1255 | | |
1256 | | - | |
1257 | | - | |
1258 | | - | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
1259 | 1260 | | |
1260 | | - | |
1261 | | - | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
1262 | 1264 | | |
1263 | 1265 | | |
1264 | 1266 | | |
| |||
0 commit comments