1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
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
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
|
commit 2be6487de417473aac85ebd800392cdd8604c4a6
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Sep 15 11:26:54 2017 +1000
xf86-input-libinput 0.26.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 6ce3d0249d426e6b3c83e7f86d76bb3145c00a74
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Jun 26 18:27:10 2017 +1000
Post a motion event before a tablet button down
Not all clients update the pointer position correctly from the button events
(for historical reasons) so we need to send a motion event before the button
event that represents a tip state change.
https://bugs.freedesktop.org/show_bug.cgi?id=101588
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 87f9fe3a6fafe60134c69419c0e551b9dbc112b7
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed May 24 08:42:02 2017 +1000
Only initialize properties that match capabilities on a subdevice
If a device is split into multiple subdevices, usually pointer+keyboard, we
initialized properties matching the libinput device on both devices. This
results in the keyboard having e.g. a Accel Speed or Left Handed settings even
though it cannot send any events of that type.
Filter by capabilities on the subdevice so we only get those properties that
match the subdevice's capabilities.
https://bugs.freedesktop.org/show_bug.cgi?id=100900
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 0c657e0dcff4cff06a0d4cbea7dfac2a1d505cc3
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu May 18 14:02:52 2017 +1000
Update copyright years
because why not
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit ac3574958f90bdcac946d26519123d809998c33b
Author: Niklas Haas <git@haasn.xyz>
Date: Mon May 15 03:13:43 2017 +0200
man: add missing documentation for Accel Profile
This seems to have been simply missing from 0163482e.
cf. https://bugs.freedesktop.org/show_bug.cgi?id=101017
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 8772a593b45740f4429218648c9e3a305b3fe896
Author: Martin Kepplinger <martin.kepplinger@ginzinger.com>
Date: Thu May 4 08:49:34 2017 +0200
Fix config comment description to match the config
Since the config matches on tablets too, update the describing comment
accordingly.
Signed-off-by: Martin Kepplinger <martin.kepplinger@ginzinger.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit a80773a488da3f3dfe5a5dc0fd658dc8a6a3b331
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri May 5 13:43:23 2017 +1000
xf86-input-libinput 0.25.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 8bc694595d26c2ae7dd98b27c9eed0ec0366b7a5
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Mar 21 13:13:43 2017 +1000
Post a motion event after proximity events
This patch splits the meat of xf86libinput_handle_tablet_axis into a helper
function xf86libinput_post_tablet_motion(), to be called right after we send
the proximity in event.
Clients that don't handle proximity (e.g. all XI2 clients) don't see the
coordinates we send along with the proximity events. And, for historical
reasons, they may not look at the coordinates in button events. So a device
that comes into proximity and immediately sends a tip down button event
doesn't send a motion event, causing the client to think the tip down was at
whatever the last known position was (before previous prox-out).
The practical effect is that when a user tries to draw a few dots, they end up
being connected to each other.
https://bugzilla.redhat.com/show_bug.cgi?id=1433755
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 153a7fc62fa87a2cc2516826b3eae16fa8cc861d
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Mar 9 15:58:39 2017 +1000
xf86-input-libinput 0.25.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 72fb6d304eec6eeeac6b42963c2729134d56de57
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Feb 28 14:45:29 2017 +1000
test: fix a test failure on ppc64(le) and aarch64
Caused by different results in -O0 vs -O2. The resulting array differs only
slightly but the initial sequence has one extra zero. That triggers our
assert, no other compiler flag seem to be affecting this.
Compiled with -O0:
Breakpoint 1, test_nonzero_x_linear () at test-bezier.c:157
157 assert(bezier[x] > bezier[x-1]);
(gdb) p bezier
$6 = {0 <repeats 409 times>, 1, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 21, 22,
Compiled with -O2:
(gdb) p bezier
$1 = {0 <repeats 410 times>, 1, 3, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22,
Printing of the temporary numbers in the decasteljau function shows that a few
of them are off by one, e.g.
408.530612/0.836735 with O0, but
409.510204/0.836735 with O2
Note: these are not rounding errors caused by the code, the cast to int
happens afterwards.
Hack around this by allowing for one extra zero before we check that the rest
of the curve is ascending again.
https://bugs.freedesktop.org/show_bug.cgi?id=99992
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit aae2c8ad9a9f1712149c93d50284ddb5f37e4cbd
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Feb 24 12:56:41 2017 +1000
Open sysfs files directly instead of going through the server
Only use-case here are pad mode LEDs that now live in /sys/class/leds. Asking
the server to open them is pointless, the server only knows how to open Option
"Device". And since the LEDs are in sysfs we should have access to them
anyway, so no need for jumping through or hula-ing hoops.
xf86CloseSerial() works as intended as it's a slim wrapper around close(), so
we only have to worry about the open() path here.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit dafc296f2df587a1bb5feb37697c50608db4f246
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Feb 24 12:34:10 2017 +1000
Add streq() macro, replace strcmp instances with it
And why isn't this a thing in glibc yet
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
commit 7c90f06d569b1b14d84075e7cea22bce06b925e6
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Feb 24 12:27:37 2017 +1000
Update pad modes in a workproc, not during the input thread
Updating the property directly causes us to send events from the input thread
which has some "interesting" side effects like messing up the reply order or
just crashing the server.
Schedule a work proc instead and update it whenever the server is back in the
main thread.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 2eb5a2f0c08747df44eba6faff95cc9ce24b78ed
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Feb 9 16:16:34 2017 +1000
xf86-input-libinput 0.24.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 19ceef972e76bc491438198659748786d9457668
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Jan 27 10:24:08 2017 +1000
Drop unnecessary function declaration
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 07f30ea049303739bf6006d23ac924971a19d778
Author: Mihail Konev <k.mvc@ya.ru>
Date: Thu Jan 26 14:00:21 2017 +1000
autogen: add default patch prefix
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
commit 6187ed0450e68aaf727779ad61b50b0b70a1122e
Author: Emil Velikov <emil.l.velikov@gmail.com>
Date: Mon Mar 9 12:00:52 2015 +0000
autogen.sh: use quoted string variables
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
fall-outs, when they contain space.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 974ab6b62bd2af97e1556314df28fe9f3b816e54
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Oct 28 11:20:22 2016 +1000
Add tablet tool area ratio property
By default, the X server maps the tablet axes to the available screen area.
When a tablet is mapped to the screen but has a different aspect ratio than
the screen, input data is skewed. Expose an area ratio property to map the
a subsection of the available tablet area into the desired ratio.
Differences to the wacom driver: there the x/y min/max values must be
specified manually and in device coordinates. For this driver we merely
provide the area ratio (e.g. 4:3) and let the driver work out the rest.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com>
commit 5d0470738125243c98f7a8cc40d62f53604a8051
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Oct 24 14:41:51 2016 +1000
Implement stylus pressure curve support
Takes a 4-point cubic bezier curve as input and maps the pressure coordinates
to the values outlined by this curve. This is an extension of the current
implementation in the xf86-input-wacom driver which only allows the two center
control points to be modified.
Over the years a few users have noted that the wacom driver's pressure curve
makes it impossible to cap the pressure at a given value. Given our bezier
implementation here, it's effectively a freebie to add configurability of the
first and last control points. We do require all control points' x coordinates
to be in ascending order.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit f65a5c50224efc34414f44c86700e15392b7039b
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Oct 26 11:57:49 2016 +1000
Add a bezier curve implementation
Needed for the wacom stylus pressure curve
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 0dad7408fac3b69c4b6ab7705f39f790d7ba20c2
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Nov 28 14:09:06 2016 +1000
Calculate the required scroll distance based on the angle
For a mouse with a click angle of 15 degrees things are unchanged. For devices
with angles less than 10, the current code scrolled way too fast. Because the
angle wasn't used anywhere, each tick would count as full scroll wheel event,
a slight movement of the wheel would thus scroll as much as a large movement
on a normal mouse.
Fix this by taking the actual click angle of the device into account. We
calculate some multiple of the angle that's close enough to the default 15
degrees of the wheel and then require that many click events to hit the full
scroll distance. For example, a mouse with a click angle of 3 degrees now
requires 5 clicks to trigger a full legacy scroll button event.
XI2.1 clients get the intermediate events (i.e. in this case five times
one-fifth of the scroll distance) and can thus scroll smoothly, or more
specifically in smaller events than usual.
https://bugs.freedesktop.org/show_bug.cgi?id=92772
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit ea02578a4e888d9908eb6bed6dcb858f78acb8bb
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 29 08:31:32 2016 +1000
Move axis value calculation into a helper function
The only difference here is the axis number.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 2ceb2e1b18b6f971706230d16a2a5665d87aabd4
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 29 09:21:24 2016 +1000
Add a comment regarding scroll dist default values
Changed this during development because I forgot that the value actually
matters (for touchpads anyway).
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit f47f78eb0bd9fba455f01c8c6dead3bd75242b2b
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Dec 20 15:36:55 2016 +1000
Ignore LED updates for disabled devices
If an XKB AccessX timeout is set and a VT switch is triggered, the
AccessXTimeoutExpire function may be called after the device has already been
disabled. This can cause a null-pointer dereference as our shared libinput
device may have been released by then.
In the legacy drivers this would've simply caused a write to an invalid fd
(-1), not a crash. Here we need to be more careful.
https://bugs.freedesktop.org/show_bug.cgi?id=98464
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 1c3ce3ce3c315213511735db1b0fdd74ca8442d0
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Dec 12 14:54:00 2016 +1000
xf86-input-libinput 0.23.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 4d481ea7c80dad9f53b47c026959c25ad9da5211
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Dec 5 14:25:31 2016 +1000
Fix default scroll button number
Was exposing the evdev code rather than the xorg code.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 72bac84df9ce72f2baf730655ecc23f1692d1e64
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 15 11:23:08 2016 +1000
If the parent libinput_device is unavailable, create a new one
The parent device ref's the libinput device during pre_init and unref's it
during DEVICE_INIT, so the copy is lost. During DEVICE_ON, the libinput device
is re-added and ref'd, this one stays around now. But the takeaway is: unless
the device is enabled, no libinput device reference is available.
If a device is a mixed pointer + keyboard device, a subdevice is created
during a WorkProc. The subdevice relied on the parent's libinput_device being
available and didn't even check for it. This WorkProc usually runs after
the parent's DEVICE_ON, so in most cases all is well.
But when running without logind and the server is vt-switched away, the parent
device only runs PreInit and DEVICE_INIT but never DEVICE_ON, causing the
subdevice to burn, crash, and generally fail horribly when it dereferences the
parent's libinput device.
Fix this because we have global warming already and don't need to burn more
things and also because it's considered bad user experience to have the
server crash. The simple fix is to check the parent device first and if it is
unavailable, create a new one because it will end up disabled as well anyway,
so the ref goes away as well. The use-case where the parent somehow gets
disabled but the subdevice doesn't is a bit too niche to worry about.
This doesn't happen with logind because in that case we don't get a usable fd
while VT-switched away, so we can't even run PreInit and never get this far
(see the paused fd handling in the xfree86 code for that). It can be
reproduced by setting AutoEnableDevices off, but why would you do that,
seriously.
https://bugs.freedesktop.org/show_bug.cgi?id=97117
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 0b073d90e63d644401769c61611638d65a4eaf44
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Nov 11 12:36:01 2016 +1000
Link the left-handed property between the tools
The property is tablet-wide, not just per tool. So when one tool is updated,
run through all other devices that share the same underlying device.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 669fbb098516e0bdf6c62c52c1bcb12580de069b
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 1 10:42:19 2016 +1000
Drop indentation for matrix handling
Exit early if the string is NULL to reduce indentation. No functional changes.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit c4f0a9bcb846f70b85a285e8acea8fe086abdccb
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 1 10:06:03 2016 +1000
conf: match against tablets too
Now that we sort below the xf86-input-wacom driver anyway, there's no good
reason to ignore tablets anymore.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit a61e156326197dbbf1c1294693946c504af9daee
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Oct 24 14:23:16 2016 +1000
man: sort the options and properties alphabetically
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 552cbaf466a0aede8f789aa2013795f3b9ac253d
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Oct 26 15:03:48 2016 +1000
Don't init the AccelSpeed/LeftHanded properties on the base tablet device
This device never sends events, no point in exposing these options
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
commit bc91d337d7cf765fd23e47783a498e4b3b334f39
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Oct 20 08:42:53 2016 +1000
Fix potential NULL pointer dereferencing
Found by coverity.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit c8d2293873d3f86e5cefffa5c51cfe423d09c948
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Oct 20 08:38:24 2016 +1000
Remove superfluous check for next being NULL
is_libinput_device(next) causes a dereference of next anyway, so this cannot
ever be NULL.
Besides, if next ends up as NULL that means we have lost count of how many
remaining devices use libinput, so we have other issues.
Found by coverity.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit a7014aa8c619ed9bc1cd5c0b38428fd88f1bc8d4
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Oct 20 08:27:01 2016 +1000
Remove two unused variables
They were never used anyway
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit bf7fffde520277e13b350950de9dc5bf89858951
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Oct 19 11:42:57 2016 +1000
Don't init the horiz scroll property on non-pointer devices
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 728217775626e2086d7c3acd0d242562390f145b
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Oct 19 10:55:12 2016 +1000
xf86-input-libinput 0.22.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 1dd61abf7e6af9cdd12d8f5a35fe90954aa03e64
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Oct 19 10:37:32 2016 +1000
Wrap the input_lock calls into ifdefs
Missing from a790ff35f9
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit c80954386d536b83f2c9290e1a88515c04505818
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Oct 19 09:24:37 2016 +1000
xf86-input-libinput 0.21.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit a790ff35f90e459fe03e0c78ab6f4e9dd5045dd0
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Oct 14 17:00:41 2016 +1000
Swap the registered input device on DEVICE_OFF when needed
If we don't swap out the pInfo previously passed to xf86AddEnabledDevice(),
the thread eventually calls read_input on a struct that has been deleted.
Avoid this by swapping out the to-be-destroyed pInfo with the first one we
find.
Reproducer: sudo udevadm trigger --type=devices --action=add
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 6318ac420b644c7f7a6f2c8e47a64238a4afebeb
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Oct 14 13:34:56 2016 +1000
Fix tap button map option handling
Copy/paste error
https://bugs.freedesktop.org/show_bug.cgi?id=97989
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit cd02040a5d4a8f120d225a4c09f5d1dfc751c0a8
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Sep 30 17:01:21 2016 +1000
xf86-input-libinput 0.20.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 0cfe9ec6c23e73507fd0797bae24c5ed6fcce033
Author: Michel Dänzer <michel.daenzer@amd.com>
Date: Fri Sep 16 17:26:06 2016 +0900
Fix --with-xorg-conf-dir default value
If --prefix isn't specified on the command line, $prefix contains "NONE"
at this point, not the default prefix value. So make install would
attempt to install the xorg.conf.d snippet to
${DESTDIR}NONE/share/X11/xorg.conf.d/.
Avoid this by leaving ${prefix} verbatim in the default value, to be
resolved by make.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit b87d2530db46a08de15376722873295e01bef16f
Author: Keith Packard <keithp@keithp.com>
Date: Fri Sep 16 10:18:31 2016 -0700
Initializing strip association with wrong index
This looks like a cut&paste coding error to me, and it generated a
compiler warning about possibly uninitialized value.
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 2f1df46ba9ef91c079f6485c04ac7c5515d6057a
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Sep 13 14:37:07 2016 +1000
Correct the horizontal scroll property name
Clear typo. Not bothering to be backwards compatible here, anything that uses
the #define will update on rebuild, anyone using the string directly should've
told me about the typo...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit fa69bb1bc244f378507e1ef2fbcb3ea343a59a32
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Aug 18 15:13:09 2016 +1000
Always delay hotplugging subdevices
Avoid creating new devices from within the input thread which was the case for
tablet tools. It requires a lot more care about locking and has a potential to
mess up things.
Instead, schedule a WorkProc and buffer all events until we have the device
created. Once that's done, replay the event sequence so far. If the device
comes into proximity and out again before we manage to create the new device
we just ditch the whole sequence and wait for the next proximity in.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit af4fa36884b1945a231b2f7ebe011726b5a604c1
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Aug 16 09:06:27 2016 +1000
Add support for configurable tap button mapping
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit a5b3c209fc8619dea6ac57420fb7837cf6e0e8bf
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon May 30 15:27:52 2016 +1000
Add support for the rotation configuration
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 0f7c5ed02d4f2de34c6fb1fc3f4debceef08d0d7
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Aug 30 12:42:58 2016 +1000
conf: drop libinput to below the other drivers
This is the continuation of 3f569ec493e, dropping libinput below the remaining
drivers. Wacom and synaptics already sort higher anyway (see wacom commit
0da5cd54 and synaptics commit 59e5db025). evdev remains the catchall
basic fallback driver and is overwritten by libinput. The two drivers affected
by this patch are joystick and vmmouse.
joystick is a niche driver and drives devices libinput doesn't handle anyway
so there is no need to override. If a user installs it, presumably it is to
use it.
vmmouse is a niche driver and does not assign itself anymore for newer kernel
drivers (see vmmouse commit 576e8123 from Oct 2014). So if vmmouse is
installed it can safely sort higher than libinput.
Note: this is upstream behavior, distributions have to work out the wanted
behavior themselves by renaming the config snippets accordingly.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 0168716fa18cc72a8e6198b0d87b1798429d7096
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Aug 19 11:35:02 2016 +1000
Whitespace fix
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit b508c54fa0d569beb00ccba3d5b27ca993aae94d
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Aug 16 09:34:36 2016 +1000
Comment two read-only properties as such
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit d43e514430ef5878cd64387169952435d2f83007
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Jul 8 12:03:19 2016 +1000
Expose tablet pad modes as properties
There is not good wire protocol for pad modes so instead we just export the
information via properties. One property to tell us how many groups and how
many modes each group has. One property for the current mode of each group.
And three properties to tell us which group each button, ring and strip is in.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 5f2fff3c2455ad3580c4c130cf85cb5076838c18
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Aug 15 10:40:20 2016 +1000
Ensure parent devices are actual parent devices
The list returned by xf86FirstLocalDevice() includes our own device. If the
parent device is removed before the hotplug callback is invoked, the first
match with the same shared-device ID is our own device (or potentially another
subdevice on the same already-removed parent). Avoid this by making sure the
matched device is actually a parent device.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Keith Packard <keithp@keithp.com>
commit 116cddba69b37246db564c1ddf772c0144c589f0
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Aug 3 16:17:03 2016 +1000
Bail out of PreInit if the parent driver data is NULL
If the parent device is removed before the WorkProc is called, the private
data is NULL.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit fb4847d243321cb400b9abbb1f04eb8566c8cf8e
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Aug 3 15:48:58 2016 +1000
Block input events while creating the virtual subdevices
If an event comes in halfway through the new device creation we read it from
libinput's epollfd but depending on the setup stage the new device may not be
ready yet.
https://bugs.freedesktop.org/show_bug.cgi?id=97117
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit ce85b11e4c211da3b3fe1b6803498c96065c2598
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Jul 8 13:01:54 2016 +1000
Fix button offset for tablet pad buttons
4-7 is reserved for scroll buttons, as usual
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 77a47a795c04f86260ecfa7a96281f8b5a3f4e0f
Author: Eric Engestrom <eric@engestrom.ch>
Date: Sat Jul 2 12:39:12 2016 +0100
man: fix a couple typos
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit ae4f0a8d72e396528e1108161a3bcc0132df43a2
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Jun 10 08:27:30 2016 +1000
Init touch x/y axis labels as MT axis labels
https://bugs.freedesktop.org/show_bug.cgi?id=96481
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 289de5be15967983154c7cd9fbb344aab80b6679
Author: Keith Packard <keithp@keithp.com>
Date: Mon May 30 01:13:41 2016 -0700
Use xf86AddEnabledDevice instead of AddEnabledDevice when threaded [v3]
libinput can't run at SIGIO time, so it has been using
AddEnabledDevice to run in non-signal context.
Threaded input runs all input in non-signal context, so we want to use
xf86AddEnabledDevice at last.
v2: use XINPUT ABI version check instead of testing for presence of
AddEnabledDevice, which can't get removed from the server until
a few more patches past the threaded input change are merged.
v3: remove reference to XI86_SIGNAL_IO, which was presumably
a planned change to the xf86AddEnabledDevice path to make that
not use SIGIO.
Signed-off-by: Keith Packard <keithp@keithp.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit ceea2bb8ba5d5be8601c7e79b68d7805af4ce5e4
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon May 30 14:31:15 2016 +1000
Change some fixed floats to decimal notation
Just to make it more obvious we're using floats/doubles here.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit d8aef838347bc64fa635eeac436c2d1154d846ce
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon May 23 14:12:14 2016 +1000
Fix proximity events
Two bugs caused proximity events to be discarded. First, on proximity out
posting through pDev would be discarded because pDev is the parent device that
we use as a base for hotplugging the real devices for each tool from. That
device never sends events though, doing so will see the event discarded in the
server.
Second, if the tool already exists don't just exit, send the proximity event
first. To unify the three paths where we do send the events simply move them
down to the exit phase of the function.
https://bugs.freedesktop.org/show_bug.cgi?id=95484
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 34b6ed980f8fd01e2246a94b87d32458a131974b
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Apr 18 11:54:04 2016 +1000
Add tablet pad support
Modelled to be mostly compatible to the xf86-input-wacom driver behavior. The
pad gets 7 axes, the first three of which are mute and the others are always
available but obviously only send events when the axis is there.
The strip axes are incompatible, the wacom driver merely forwards the device
events (which are a bitshifted value), libinput normalizes it and we just
expand this back into an integer range. Let's see how we go with this.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit ce85432f41549cd6f3c6e0c5e2e39d0c1aee8dfd
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon May 9 07:58:51 2016 +1000
Discard buttons >= 256
https://bugs.freedesktop.org/show_bug.cgi?id=95295
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 181ea654dd737783553289a77b72706783b40c17
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Apr 28 14:10:50 2016 +1000
Fix potential use of uninitialized values
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit f9b6fa21df735e9a68c5f527afc422f519d6002c
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Apr 28 13:43:49 2016 +1000
xf86-input-libinput 0.19.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 3f569ec493e738242da97afe30f7dd2a3b2b834d
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Apr 26 15:45:18 2016 +1000
conf: rename to 60-libinput.conf
60 sorts higher than the other drivers (evdev has 10, synaptics, wacom and
others have 50) so we keep the same order.
This is part of a two-step solution, the other half is renaming the
xf86-input-wacom's config snippet to sort higher than libinput's.
Currently libinput picks up devices that are (for now) destined to the wacom
driver. Since the wacom driver is more of a leaf package than libinput, the
best option here is to make the wacom driver sort higher and let users
uninstall it when not needed. To avoid crowding the 90-* space where users
usually have custom config snippets, drop libinput down to 60 and bump wacom
up.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Jason Gerecke <jason.gerecke@wacom.com>
commit 602bb8eefac929501b2cd5e5bd4a9838d1903774
Author: Stanislav Ochotnicky <sochotnicky@redhat.com>
Date: Wed Oct 14 10:43:34 2015 +1000
Fix implicit declaration of function 'xf86Msg' in xf86libinput.c
Addition of xf86.h header fixes compilation issues in some cases.
See: https://bugs.gentoo.org/show_bug.cgi?id=560970
Signed-off-by: Stanislav Ochotnicky <sochotnicky@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 13726f404f872b8baee507e6b3d4931f1bda2254
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Apr 7 13:31:28 2016 +1000
xf86-input-libinput 0.18.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 5e7ee73fe24d53cba6a915223be53e0abcdaa70d
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Dec 3 15:58:49 2015 +1000
Support art pen rotation
The art pen is a normal pen, but it does provide a rotation axis.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 4564a92d59be39378170a2254ae1affb151a4757
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Dec 3 15:41:30 2015 +1000
Support the mouse/lens tool
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 0c2bcd0358d1107bf61ac8ff6dcb156742eb1bc6
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Dec 3 15:24:24 2015 +1000
Add support for the airbrush tool axes
Same axes as the pen, but axis number 6 is the wheel (which really is a
slider)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit b4541e4dff7248f1ce8894d8f950122785353d5b
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Nov 12 11:50:47 2015 +1000
Add support for tablet tools
Use two new internal capabilities, CAP_TABLET and CAP_TABLET_TOOL. If a
libinput tablet device is added, add an X device without any classes. This
device will not send events, but once we have pad support in libinput we
may be able to this the pad device.
When a tool comes into proximity, create a new X device for that serial number
and start sending events through it. Since the X device only represents a
single serial number/type combination, some of the wacom-specific
configuration options fall away. This only matters in the case of multiple
tools, in which case a per-tool configuration is preferable anyway, so we
don't lose anything here.
Gesture support only applied to the touch parts on the device, we don't
deal with this here specifically - that event node is handled by libinput as
touchscreen or touchpad.
This already works with GIMP and clients that don't rely on any
wacom-driver-specific properties. Configuration clients like
gnome-settings-daemon will need to change to handle new properties, to be
added as we go along.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 8136113139dd2a27fcfa4552da89aa110bc8fbe3
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Feb 26 15:57:48 2016 +1000
xf86-input-libinput 0.17.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 202eb68dc061510d57900d29b3a76fe2ed811998
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Jan 28 15:02:54 2016 +1000
Fix compiler warnings about missing tablet event cases
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit e8f5394b0734db41abd15ab72457aea99c25d9ab
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Jan 27 11:04:40 2016 +1000
Add property/option for enabling/disabling tap-n-drag
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 20f5269a29b6f3697984872d689fbe8589e53b08
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Jan 27 11:12:48 2016 +1000
Fix default tapping drack lock property value
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 3dacb28b206098f261d731195ed7556fc83837ed
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 24 13:00:52 2015 +1000
Allow hotplugging a device immediately
This splits the hotplugging code up so we can use it through a callback but
also as an immediate call that gives us back the device just hotplugged. Also
added is the ability to add extra options to the device.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit db8e73141c3ebb09c19e95aab5dee46d331835df
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Nov 23 15:31:59 2015 +1000
Change creating subdevices to something more generic
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 0d1851a000c5a80ba9b5787f516d2d72c62ce35e
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Dec 23 13:53:38 2015 +1000
xf86-input-libinput 0.16.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit ad8483b91387e99282a9b5a8360e8de7eed70257
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Dec 15 13:20:55 2015 +1000
Drain the fd after opening
Make sure we don't send any events that may have been enqueued before we
initialized ourselves. Specifically, if we're using systemd-logind the fd
remains open when we disable/enable the device, allowing events to queue up on
the fd. These events are then replayed once the device is re-opened.
This is not the case when VT-switching, in that case logind closes the fd for
us.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
commit 1f43f3921f6ceebd9a0cb92ef998a930d5fc3a3e
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Nov 11 10:10:58 2015 +1000
Split mixed pointer/keyboard devices into two separate X devices
The server struggles with devices that are both, the protocol (especially XI2)
requires a fairly strict separation of pointer vs keyboard devices. Though the
server has a couple of hacks to route events correctly, mixed
devices still experience bugs like [1].
Instead of advertising the device as a single mixed device, split the device
into two X devices, one with only a pointer/touch component, one with only a
keyboard component. This ensures that the device is effectively attached to
both the VCP and the VCK, something the XI2 protocol doesn't really allow.
This patch drops the keyboard capability on a mixed device, duplicates the
input options and attributes and queues a NewInputDeviceRequest call. The new
device only has the keyboard capability but is otherwise unchanged. The
wacom driver has used this approach for years.
The WorkProc is necessary to avoid inconsistent state, the server doesn't
handle a NewInputDeviceRequest during PreInit well.
The approach:
During pre-init we create a struct xf86libinput_device with the
libinput_device and a unique ID. The child device has that ID added to the
options and will look for the other device during its pre-init. The two
devices then share the xf86libinput_device struct.
We only have a single epollfd for all devices and the server calls read_input
on the first device in the list with the epollfd as pInfo->fd. That shared
struct is used as the userdata on the libinput_device we get back from the
event, and each device is in the xorg_list device_list of that shared struct.
We loop through those to find the ones with the right capabilities and
post the event through that device.
Since devices can be enabled and disabled independently, the rest of the code
makes sure that we only ever add the device to libinput when the first shared
device is enabled, and remove it accordingly.
The server uses pInfo->major/minor to detect if another device is using the
same path for a logind-controlled fd. If so, it reuses that device's
pInfo->fd and sets the "fd" option to that value. That pInfo->fd is the
libinput epollfd though, not the actual device fd.
This doesn't matter for us, since we manage the fds largely ourselves and the
pInfo->fd we use is the epollfd anyway. On unplug however, the udev code
triggers a device removal for all devices, including the duplicated ones. When
we disable device, we restore the pInfo->fd from the "fd" option so that the
server can request logind to close the fd.
That only works if the "fd" option is correct, otherwise the server asks
logind to close the epollfd and everyone is unhappy.
[1] https://bugs.freedesktop.org/show_bug.cgi?id=49950
https://bugs.freedesktop.org/show_bug.cgi?id=92896
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 83dfd31ec8ec2596648c33059fffb93b19691fae
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Nov 20 10:51:38 2015 +1000
Revert "Split mixed pointer/keyboard devices into two separate X devices"
When using logind, this causes the server to hang when a split device is
unplugged. The reason is mostly in the server, when open the device by
requesting the logind fd, the server loops through the device list to check if
any other device has the same major/minor (see systemd_logind_take_fd()) and
returns the pInfo->fd for that device instead of requesting the fd again from
logind.
For libinput devices, the pInfo->fd is the epollfd, not the actual device, so
our second device gets the epollfd assigned. When the devices are removed, we
keep the device fd open and release the epollfd through logind.
This reverts commit c943739a2bfd4c380db0b21bc35b73deb7496c8a.
commit c943739a2bfd4c380db0b21bc35b73deb7496c8a
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Nov 11 10:10:58 2015 +1000
Split mixed pointer/keyboard devices into two separate X devices
The server struggles with devices that are both, the protocol (especially XI2)
requires a fairly strict separation of pointer vs keyboard devices. Though the
server has a couple of hacks to route events correctly, mixed
devices still experience bugs like [1].
Instead of advertising the device as a single mixed device, split the device
into two X devices, one with only a pointer/touch component, one with only a
keyboard component. This ensures that the device is effectively attached to
both the VCP and the VCK, something the XI2 protocol doesn't really allow.
This patch drops the keyboard capability on a mixed device, duplicates the
input options and attributes and queues a NewInputDeviceRequest call. The new
device only has the keyboard capability but is otherwise unchanged. The
wacom driver has used this approach for years.
The WorkProc is necessary to avoid inconsistent state, the server doesn't
handle a NewInputDeviceRequest during PreInit well.
The approach:
During pre-init we create a struct xf86libinput_device with the
libinput_device and a unique ID. The child device has that ID added to the
options and will look for the other device during its pre-init. The two
devices then share the xf86libinput_device struct.
We only have a single epollfd for all devices and the server calls read_input
on the first device in the list with the epollfd as pInfo->fd. That shared
struct is used as the userdata on the libinput_device we get back from the
event, and each device is in the xorg_list device_list of that shared struct.
We loop through those to find the ones with the right capabilities and
post the event through that device.
Since devices can be enabled and disabled independently, the rest of the code
makes sure that we only ever add the device to libinput when the first shared
device is enabled, and remove it accordingly.
[1] https://bugs.freedesktop.org/show_bug.cgi?id=49950
https://bugs.freedesktop.org/show_bug.cgi?id=92896
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit a72e96538af2c4a94ead48f96e8e59a2a4980a64
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Nov 13 09:39:29 2015 +1000
Add a helper function for the driver context initialization
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit b1a9bea6079550fa8be4fa0b2e18ea810b0ea68c
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Nov 11 09:12:33 2015 +1000
Copy the device capabilities to the X driver struct
And use those copied caps instead of the direct device capability calls.
No functional changes at this point, this is preparation work for selectively
disabling capabilities on a device.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit a6aad69a97c68fa96e0a836e735b1a7f319b92df
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Nov 11 09:02:22 2015 +1000
Split type_name detection out into a helper function
No functional changes
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 6fa5f30129ea770bcc5e50b0785a993a8254a418
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 17 14:59:22 2015 +1000
Unref the libinput context on pre_init failure
A device that fails pre_init has a ref to the libinput context but may not
have a pInfo->private. For those devices we never call libinput_unref() and
the libinput struct never gets freed.
Thus if at least one device didn't pass pre_init, we never cleaned up after
ourselves.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit c53dde1a503ace84f755a2a8d0022fba48ad89c2
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Nov 13 10:48:02 2015 +1000
Don't fail DEVICE_CLOSE
We're not doing anything here, so no reason to fail.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit d7331f6e34cedde2a1b8159d58aec0f68796f180
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Nov 13 13:01:45 2015 +1000
Remove unused server_fds list
Obsolete as of 353c52f2bec03
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit fb56f6d7a5139445a36b3468ef7dc61d1c127335
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Nov 13 10:02:16 2015 +1000
Set the device to NULL after unref
No real effect in the current code, but it adds a bit of safety.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit c8861d2a2fd9ef875501a05b8c894045ce96ecc6
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Nov 12 10:02:38 2015 +1000
Plug two memory leaks
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 44f4b2ed7075d424e3621f30815e11875b364c27
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Oct 27 17:08:59 2015 +1000
xf86-input-libinput 0.15.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 0163482e22ad65ec51e3636cf31f9f39e29ff709
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Sep 3 18:03:00 2015 +1000
Add property support for the accel profiles
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 80c356f58fed47080eb6fa5756a122dbe14e5f6f
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Sep 18 00:27:13 2015 +1000
conf: install the libinput xorg.conf.d snippet
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 1645a79c343ea3cf8bbd71a36e9106b22e541c71
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Sep 18 00:28:36 2015 +1000
conf: don't hook onto tablets and joysticks
If we install the config file by default, we shouldn't use libinput for
devices we know we can't handle.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit b7f8db12a3389affaa16c584e03d452624ea8bf8
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Sep 18 00:24:13 2015 +1000
conf: rename 99-libinput.conf to 90-libinput.conf
This way it still sorts after the usual subjects, but it's easier to stack
extra config in afterwards.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 6abd341279ea54e7c0ce56b1a2ad310a496be2b5
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Sep 3 17:42:20 2015 +1000
Fix invalid pointer passed to the properties
Takes a void*, not a void**
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 19b42f242dddef7d6381b74b13930d6dd2734898
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Sep 3 17:33:40 2015 +1000
Move the read-only properties into the same condition
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit f48b64c8cd6f280ba8c589842ec2522a4bfe9b5c
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Aug 31 13:27:09 2015 +1000
xf86-input-libinput 0.14.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit b55239ef2552c43efd4c4fb7d39e22c255dd4e6d
Author: Yomi0 <abyomi0@gmail.com>
Date: Sun Aug 30 23:14:25 2015 -0400
Fix typo in libinput.man
Correct typo. Draging to dragging.
commit 9563334dda3c5563550fb2534b228c47216ec008
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Aug 13 11:03:44 2015 +1000
Use xf86OpenSerial instead of a direct open() call
This will transparently handle server-side fds for us.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Martin Pieuchot <mpi@openbsd.org>
commit 353c52f2bec035f04c136c8f3b28571e2a4515df
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Aug 13 10:59:39 2015 +1000
Revamp server fd opening
The server already stores the server-fd in the options, so we only need to run
through the list of current devices, find a match and extract that fd from the
options. Less magic in our driver and it gives us a pInfo handle in
open_restricted which we'll can use for xf86OpenSerial().
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Martin Pieuchot <mpi@openbsd.org>
commit f139f1424936abdc43b2c8611d569b496ffa4a68
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Aug 12 10:15:31 2015 +1000
Add an option to disable horizontal scrolling
libinput always has horizontal scrolling enabled and punts the decision when
to scroll horizontally to the toolkit/widget. This is the better approach, but
while we have a stack that's not ready for that, and in the X case likely
never will be fully ready provide an option to disable horizontal scrolling.
This option doesn't really disable horizontal scrolling, it merely discards
any horizontal scroll delta. libinput will still think it's scrolling.
https://bugs.freedesktop.org/show_bug.cgi?id=91589
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit e3a888c3ab0f4cc42943b0216852cba110c3dad2
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Aug 7 15:19:12 2015 +1000
Add drag lock support
First, why is this here and not in libinput: drag lock should be implemented
in the compositor (not in libinput) so it can provide feedback when it
activates and grouped in with other accessibility features. That will work for
Wayland but in X the compositor cannot filter button events - only the server
and the drivers can.
This patch adds mostly the same functionality that evdev provides with two
options on how it works:
* a single button number configures the given button to lock the next button
pressed in a logically down state until a press+ release of that same button
again
* a set of button number pairs configures each button with the to-be-locked
logical button, i.e. a pair of "1 3" will hold 3 logically down after a
button 1 press
The property and the xorg.conf options take the same configuration as the
evdev driver (though the property has a different prefix, libinput instead of
Evdev).
The behavior difference to evdev is in how releases are handled, evdev sends
the release on the second button press event, this implementation sends the
release on the second release event.
https://bugs.freedesktop.org/show_bug.cgi?id=85577
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit cd61ddb040af288cf0e5a3fcccab3d390e3f1cab
Author: Martin Pieuchot <mpi@openbsd.org>
Date: Tue Aug 11 12:58:33 2015 +0200
Remove unneeded header, epoll(7) interface is not directly used.
Signed-off-by: Martin Pieuchot <mpi@openbsd.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit a19988005750f56254977f55bd3d11e944853176
Author: Martin Pieuchot <mpi@openbsd.org>
Date: Tue Aug 11 12:37:51 2015 +0200
Rename a local variable to not shadow the BSD strmode(3) function.
Signed-off-by: Martin Pieuchot <mpi@openbsd.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit cc57eecd720d0b002499bb81ada1f84515b0b49e
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Aug 7 16:34:32 2015 +1000
gitignore: add patterns for automake test suite and misc other bits
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit fe58cff48b6daa26b2d6f8a3b72d120db6fab642
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Aug 7 14:48:35 2015 +1000
Rename main source file to x86libinput.c
To avoid conflict and confusion with libinput's sources. This was originally
triggered by needing a header file for the driver which cannot be named
libinput.h. That need went away after other refacturing, but we might as well
rename it now, sooner or later we'll need a xf86libinput.h file.
Can't do much about the libinput-properties header though, not worth breaking
other projects and it's namespaced into /usr/include/xorg anyway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 4b2bed6912d79f0104770d7956f14b4448c8b0ed
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Aug 4 17:08:22 2015 +1000
xf86-input-libinput 0.13.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 223be9f62bc614c4bfa2836c5b0aaded70cadf9c
Author: Stephen Chandler Paul <cpaul@redhat.com>
Date: Sun Aug 2 14:18:10 2015 -0400
Add a property for Disable While Typing
Signed-off-by: Stephen Chandler Paul <cpaul@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit d3ee745a2461c09c86916f2ecf97426b6145ee09
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Jul 21 11:21:47 2015 +1000
man: minor man page improvements
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit b550b70a002e0f1645a3ac6bc80d367bd72b4b7a
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Jul 21 11:16:06 2015 +1000
Fix compiler warnings about touchpad gestures
We don't do anything with them though.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 254b1f27a07f2372aa0c70674e8be5a02d068feb
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Jul 14 16:18:38 2015 +1000
xf86-input-libinput 0.12.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit bfedf7dbac7e92479629713c3f5622e4f19de1f4
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Jul 8 10:31:30 2015 +1000
Add a property for tap drag lock
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 9c5cf971439292661e1f3055ef882526baae6310
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Jun 15 10:17:20 2015 +1000
Support buttons > BTN_BACK on mice
https://bugzilla.redhat.com/show_bug.cgi?id=1230945
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 449b496a3abd2860ada3a27a4d23efc28b87448d
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Jun 5 13:40:31 2015 +1000
xf86-input-libinput 0.11.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit d4e0b5420ff2af2e790f12d10996f93ec6066b4a
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Jun 1 11:41:09 2015 +1000
Fix missing scroll methods default/scroll button property
Even if no scroll method is enabled by default, we still want those
properties.
Introduced in 8d4e03570c.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 19c91044e44dd31deaeb638a919c64e9a9182448
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue May 5 14:17:10 2015 +1000
Use the new unaccelerated valuator ValuatorMask features
SDL Games like openarena rely on relative input that's handled by the DGA code
in the server. That code casts the driver's input data to int and sends it to
the client. libinput does pointer acceleration for us, so sending any deltas
of less than 1 (likely for slow movements) ends up being 0.
Use the new ValuatorMask accelerated/unaccelerated values to pass the
unaccelerated values along, the server can then decide what to do with it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 3d6afca975e5c54d458974ca2e9ada3df209587c
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed May 20 13:22:45 2015 +1000
Only init abs axes if we don't have acceleration
A lot of devices (mainly MS input devices) have abs axes on top of the
relative axes. Those axes are usually mute but with the current code we set up
absolute axes for those devices. Relative events are then scaled by the server
which makes the device appear slow.
As an immediate fix always prefer relative axes and only set up absolute axes
if the device has a calibration matrix but no pointer acceleration.
This may mess up other devices where the relative axes are dead, we'll deal
with this when it comes.
https://bugs.freedesktop.org/show_bug.cgi?id=90322
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 158e3264cefa9e6ac3e2218027b212237b039ce6
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu May 21 09:52:40 2015 +1000
xf86-input-libinput 0.10.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 006c80263027d5c5bc4e26d1b61a412f8a444a2d
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed May 20 13:37:06 2015 +1000
Group scroll distances into a struct
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit d6ce065cea25785a8d03d27d723846e583c55e3b
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Apr 29 09:30:14 2015 +1000
Add option "ButtonMapping" (#90206)
With a long entry in the man page to detail what this option does.
Specifically, it's the xorg.conf equivalent to XSetPointerMapping(3), it
doesn't do any physical button remappings, merely the logical ones. If the
physical button isn't mapped to the right logical button by default, that's
either a libiput bug or an xkcd 1172 issue.
X.Org Bug 90206 <http://bugs.freedesktop.org/show_bug.cgi?id=90206>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit b9a21505766a972016f18a48437411d88b25bd8b
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Apr 29 09:18:44 2015 +1000
man: add two linebreaks to make things easier to visually parse
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 9356471f3f975aeb47d0cca43f31317af9ba384a
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Apr 29 08:18:13 2015 +1000
Move the option parsing into helper functions
No functional changes, though I did move a free() up a bit in the process (see
sendevents parsing).
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit d5fa03c3433637c0fa8cbbfb38dadcf384f06ac3
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Apr 23 17:48:44 2015 +1000
Add a property for middle button emulation
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 446401bea9d0335273963f476e897d8c4916420e
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Apr 23 12:20:12 2015 +1000
xf86-input-libinput 0.9.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 8d4e03570cbdbb53bae57452614cbe45b6eb46f8
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Mar 16 09:33:17 2015 +1000
Add "libinput something Default" properties
A client or xorg.conf setting may change the property but once changed it
cannot be reset by a client to the original state without knowledge about the
device.
Export the various libinput_...get_default() functions as properties.
https://bugs.freedesktop.org/show_bug.cgi?id=89574
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 0c5620a29c6f08b824457f5e6ce3c4e25c1c136e
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Mar 16 09:40:36 2015 +1000
Add a helper function for making properties
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit fb50cef7002392eb16537fe8f0cdffbc2ab03a7a
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Mar 18 09:10:38 2015 +1000
man: update the property list in the man page
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 64a0f870e02f99f2204cc5568c3eea4d8a16e80d
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Mar 18 08:58:59 2015 +1000
Fix a couple of -Wformat warnings
unsigned int vs int
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit e362e4dc4c7662902c3e467d9ef9686bf63acbbd
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Mar 16 10:35:37 2015 +1000
cosmetic: drop duplicate empty lines
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 7b3b04b5186abf9b3ebb7bc9db1c0bf10635d84c
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Mar 6 15:32:58 2015 +1000
xf86-input-libinput 0.8.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 4ac531bdf6577ab4701b38d333626593abbf327d
Author: Boyan Ding <boyan.j.ding@gmail.com>
Date: Fri Mar 6 10:22:15 2015 +0800
Initialize variable 'path' to NULL to silence warning
CC libinput.lo
libinput.c: In function 'xf86libinput_pre_init':
libinput.c:1222:2: warning: 'path' may be used uninitialized in this
function [-Wmaybe-uninitialized]
free(path);
^
Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 7ec0bf7ae2e3753d7e4989495bae80057f39508e
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Mar 4 14:46:29 2015 +1000
Up the scroll dist value for touchpads
For source FINGER and CONTINUOUS, the axis value is the same as relative
motion - but scrolling in X usually doesn't have the same speed as finger
movement, it's a lot coarser.
We don't know ahead of time where we'll get the scroll events from. Set a
default scroll distance of 15 and multiply any wheel clicks we get by this
value.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 2ffd8d14be6e713e7f26b8b220da076171efe427
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Mar 2 10:42:38 2015 +1000
Apply the configuration before initalizing the property
Otherwise the property contains the device defaults, rather than the xorg.conf
options.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit e9a0ee69cb81dea2280c0ae2eeea371c70d7911c
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Mar 2 10:42:03 2015 +1000
Don't unref the device until we're done with it in DEVICE_INIT
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit fb6506f5eeecb6f7def8a11cff58b89b78c89768
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Feb 26 17:03:15 2015 +1000
Add properties to change the click method (#89332)
X.Org Bug 89332 <http://bugs.freedesktop.org/show_bug.cgi?id=89332>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 275c71286652f5801c972095ed2142c3752306ea
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Feb 26 16:50:50 2015 +1000
Split out property init into helper functions
Makes the code less messy. Only functional change is that if one property
fails to initialize we'll now continue with the others. Previously the first
failed property would prevent any other property init.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit 2455f0d03bf786ca4202e527d658b013db98084e
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Feb 25 13:05:03 2015 +1000
Use the new libinput_device_pointer_has_button
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 98ae01b9ae8616d3c2047f5510205aa4e3bc52b5
Author: Olivier Fourdan <ofourdan@redhat.com>
Date: Wed Feb 25 11:49:19 2015 +0100
Ignore property changes if the device is disabled
If the device is present but disabled, the server will still call into
SetProperty. We don't have a libinput device to back it up in this case,
causing a null-pointer dereference.
This is a bug specific to this driver that cannot easily be fixed. All
other drivers can handle property changes even if no device is present,
here we rely on libinput to make the final call. But without a device
path/fd we don't have a libinput reference.
The protocol doesn't mention this case, so let's pick BadMatch as the
least wrong error code. And put a warning in the log, this needs a
workaround in the client.
Also, if we get here and the device is on, then that's definitely a bug,
warn about that.
https://bugs.freedesktop.org/show_bug.cgi?id=89296
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 2600a4a352185f7d4d828f7d223628e4bb0f2aa3
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Feb 25 07:48:18 2015 +1000
Fix off-by-one error in buttonmap initialization (#89300)
X.Org Bug 89300 <http://bugs.freedesktop.org/show_bug.cgi?id=89300>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 278a685c5a643fc6c5042e15e063721b09e85282
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Feb 24 14:45:12 2015 +1000
xf86-input-libinput 0.7.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 875f1696b780862886c75cd88b29fbc933ea7a1b
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Feb 4 14:08:46 2015 +1000
Only apply left-handed/scroll button configuration when it's available
https://bugs.freedesktop.org/show_bug.cgi?id=88961
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 45e9b6c64b9bf0a84e3ee0e1fbb8f9f4efc3a8a0
Author: Friedrich Schöller <code@schoeller.se>
Date: Sat Jan 24 02:20:22 2015 +0100
Reapply configuration at DEVICE_ON
The driver ignored my xorg configuration. Maybe I am doing something wrong,
but I tried to track down the error and came up with this solution.
The device is closed after DEVICE_INIT so we need to apply configuration
options at DEVICE_ON.
Signed-off-by: Friedrich Schöller <code@schoeller.se>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit dcdf1e24c8427ecac3bff315b85e8273b849a1da
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Jan 28 10:48:50 2015 +1000
Formatting fix
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 64e1b145982a9a9870fee8ce9e4404662151319e
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Jan 27 10:08:32 2015 +1000
xf86-input-libinput 0.6.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit e729451bb1ea54209e600acc801ce88d46784aa2
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Jan 27 07:49:53 2015 +1000
Swap button labels for back/forward to align with linux/input.h
We just forward the kernel buttons, so this should be in the same order.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 7d73602c4b60aedee41986362cee6a460ec91a92
Author: Olivier Fourdan <ofourdan@redhat.com>
Date: Tue Jan 20 13:54:10 2015 +0100
Move properties to a separate header
And install the header as part of the SDK, so that applications interfacing
with the libinput driver do not have to copy paste all the properties' names.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 00b96de351404fc22e8f16610df667f7f35c448f
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Jan 21 11:56:32 2015 +1000
Revert "libinput-drv: Move properties to a separate header"
Missing the pkg-config file, updated patch coming up.
This reverts commit 8ceed9c73dfca991b9ffc639b7db8cdfc48fe4d9.
commit 8ceed9c73dfca991b9ffc639b7db8cdfc48fe4d9
Author: Olivier Fourdan <ofourdan@redhat.com>
Date: Tue Jan 20 12:01:10 2015 +0100
libinput-drv: Move properties to a separate header
And install the header as part of the SDK, so that applications interfacing
with the libinput driver do not have to copy paste all the properties' names.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit e4cd6cef9154a330646cfcaad4e78fcef3db3917
Author: Olivier Fourdan <ofourdan@redhat.com>
Date: Tue Jan 20 12:01:09 2015 +0100
libinput-drv: Add autogen.sh
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 7bc662d0b48e718cf30c4e4b1b32c1c8a557e091
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Jan 19 14:36:59 2015 +1000
Remove unused define
Obsolete since 2348a6812a3cc575d729bee1d14a19d0a9b88651
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit a55cb9121a16e1f6d5c2fbb35fcbd5a676fae130
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Jan 19 14:36:19 2015 +1000
Move the property #defines up
Since they serve as documentation, make them easier to find.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit efb5cacb25be0197479ec6178ffe194c93d61b90
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Jan 16 14:39:29 2015 +1000
xf86-input-libinput 0.5.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 2348a6812a3cc575d729bee1d14a19d0a9b88651
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Jan 13 13:02:38 2015 +1000
Fix for new libinput APIs
Scroll events carry multiple axes.
Left-handed config was renamed to drop the "button" bit
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 0c4eaf5480168b468547cdb3bd8ce5247b5a5378
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Dec 2 12:29:07 2014 +1000
Support server-side fds
libinput's device handling and server-side fd handling are a bit of a
mismatch, so this is hackier than one would hope for.
The server sets pInfo->fd and the options "fd" and "device".
The server requires pInfo->fd to be the one triggering select(2) to call the
correct pInfo->read_input. We can't pass an fd to use into libinput, all we
have is the open_restricted callback. That callback gives us the context, but
not the pInfo with the fd we want.
The solution:
1) In PreInit, store the patch + fd combination in a driver-wide list. Search
that list for an fd in open_restricted, return the pre-openend fd.
2) Overwrite all devices' pInfo->fd with the libinput epollfd. In this driver
we don't care about which device read_input is called on, we get the correct
pInfo to post events from through the struct libinput_device of the libinput
events.
3) When a device is closed, swap the real fd back in so systemd-logind closes the
right fd.
This saves us worrying about keeping the right refcount on who currently has
the fd set to the libinput fd. We just set it for all devices, let the server
figure out which device to call (the first in inputInfo.devices) and we only
need to remember to swap it back during DEVICE_OFF.
If the server calls close on a pInfo->fd without telling the driver, that's a
bug anyway.
This patch also drops the pInfo->fd = -1 calls, they've been unnecessary since
at least 1.11, possibly earlier.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
commit bc7bcca342ad1abcfbbf0df58052ff1b6c2e38bd
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Dec 5 15:18:40 2014 +1000
xf86-input-libinput 0.4.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit e5079cd98e453ed8d6bd5a9f731adb33c464b96d
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Dec 5 15:11:43 2014 +1000
Require libinput 0.7.0
We've required this already anyway, now we have the libinput version to match
though
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 200be95ac9d4284dcd6875903ae5ef3f51c65440
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Dec 4 17:31:08 2014 +1000
Support absolute pointer devices
Detecting them is a bit of guesswork: if a device is a pointer device and has
a calibration matrix option, then the device must be an abs device.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 8b5dbd4c018fbb8ac15fa19d8fe1365ad119529d
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Dec 1 11:55:33 2014 +1000
Split up a really long line
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit fb5c5b6f8547bee22a13e9e461da13103654b510
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Dec 1 11:52:28 2014 +1000
Move the option parsing into a separate function
No functional changes, makes preinit a bit more digestible.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 182363d674427478a3a86c0d81a038a663b9b66a
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Dec 1 11:48:56 2014 +1000
Change a sigsafe error to xf86IDrvMsg
We don't use the signal handler in this driver, so no need for sigsafe
logging.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit f0b14c6ccce202d9dba03170a9aa73ba0df7c082
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Dec 1 11:47:15 2014 +1000
Change the touch IDs to uints
Better overflow behavior, not that we're likely to trigger it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit e92c9f0bad257343224835dfe5e26dbf826c5ece
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Dec 1 11:45:40 2014 +1000
man: fix wrong option name
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit dda952fafed05ce15c79e0f5a5928cc012a60ec6
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Dec 1 11:44:11 2014 +1000
Leave the XKB defaults up to the server
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 17302c335277b3dd760e52fd04f5ce1839df17bf
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Nov 28 09:18:14 2014 +1000
Allow disabling scroll methods
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 7e3926f2b7b2a9f2a3b08e7e9d7578c93da33025
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Nov 28 08:52:34 2014 +1000
Split sendevent modes property into "available" and "current"
Clients need to know which methods are available, not just which one
is currently set. Export bitmask config options as two properties,
one read-only named "... Available" and one set-able one named "... Enabled"
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 9ad23dd1cb44ad21207dd0110a7253506066a944
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Nov 28 08:29:16 2014 +1000
Split scroll methods property into "available" and "current"
Clients need to know which methods are available, not just which one is
currently set. Export bitmask config options as two properties, one read-only
named "... Available" and one set-able one named "... Enabled"
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 7b2dbdc224e3e81cc322d3590e1c0079d4a5cb56
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Nov 24 17:43:23 2014 +1000
xf86-input-libinput 0.3.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit eddc8cb1b2b66f575348c6ff7cb189ce0052ef88
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Nov 24 11:44:43 2014 +1000
Don't process events from devices that got removed already
If the driver doesn't have a pInfo reference anymore for a libinput device,
don't bother processing events, the device was already removed. This was
triggered by the libevdev test suite which adds/removes devices very quickly.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 95597d80705dbd687cc86ce2eef02f35f7946ed6
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Nov 24 11:35:01 2014 +1000
Drop double empty lines
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit a323e221a715997aae6738acb106b86aed344355
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 18 15:31:23 2014 +1000
Use the button conversion helper for normal button events too
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 6385974e4dc74e1e742e485b68aa037c68c55fa9
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 18 13:58:10 2014 +1000
Add support for changing the button-scrolling button
This currently exposes the libinput button name, which isn't ideal. Needs to
be switched to X button numbers.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 439a244ae7e6ea21b4e15c08fcaef8cab00920ad
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 18 14:26:15 2014 +1000
Add support for switching scroll methods
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 4a049ad6f82c1c8cb5148579b2976d5caf639a14
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 18 13:44:32 2014 +1000
Add support for left-handed button orientation
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit ef948537e1f2e7007f686f6b1aef0c98b68bb965
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Nov 19 14:54:02 2014 +1000
xf86-input-libinput 0.2.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 576da9db26d4241dfede0310eef665d5a63ddb94
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Nov 19 11:42:04 2014 +1000
Hook up the libinput log handler
Let the server filter based on the verbosity levels in the server, so map
ERROR to -1 (always), INFO to 3 (default verbosity) and DEBUG to 10.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 2eb01498bda0855edbfdfdb3bf9cb7b4312a785f
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Nov 19 11:30:12 2014 +1000
Add an explanatory comment for the disabled ptraccel
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit a4fb161c3e46919d69360794ccb27bc5df8d3340
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 18 16:36:44 2014 +1000
Allow re-enabling of the sendevents configuration
When re-enabling the device, the mode is 0.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 15291e53b77a3ab89c7d285acd5ebae54539da5f
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 18 15:50:17 2014 +1000
Update the README
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit d9c212d2665f2b8c25e5a4cdba29a047bd87d7cd
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 18 15:41:17 2014 +1000
Init the right number of buttons for pointer devices
This only makes room for the highest button number present on the device, it
doesn't cater for devices with 'holes'. i.e. if a device has only BTN_BACK, it
will initialize buttons for all below too.
Which is also evdev's current behavior.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit d48f437aa9d3f3afaa19bd51d15c3f915e1a1fa0
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 18 15:37:04 2014 +1000
Replace hardcoded button number with one we can calculate
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 84f301f7e34c503715f5c9851dc8ac14f0b76d3f
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 18 15:33:05 2014 +1000
Fix loop condition
Use the passed-in value, not the global constant.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 6f06b1dd1d9b5b418ca7f3ad000598315c4c04b3
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Nov 18 13:37:31 2014 +1000
Set the XI type for the device
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit fdbf7eaf4be60c57fcd44aa79b20401184c75d90
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Sun Oct 5 22:48:30 2014 +1000
man: add missing Makefile.am
commit 2b6c485117b51547e68d5e09128e9ebf1b126984
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Sep 25 16:27:49 2014 +1000
Store the data in the local options, then apply all at once
Less code this way, though if we somehow sneak in a bad option we get the
error for it every time we update any property.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 246200cbdcdb745f238dab37d3d712b76c91fac5
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Sep 25 16:17:10 2014 +1000
Apply all config options on DEVICE_ON
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit fb41458a93b2e2492a440f0865291093e3301238
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Sep 25 16:03:59 2014 +1000
Expose all config options as xorg.conf options
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit d9d2e9a50138af479eabd81ade2159449c06fd1a
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Sep 25 13:42:09 2014 +1000
Add a man page
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 0a58edd3f6db91375c007a8a0fa417518d4c0f52
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Sep 25 13:33:21 2014 +1000
Add a couple of general properties that all drivers should support
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 8d6019c786febc55cf6c214fbecc44d70eba29be
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Sep 23 07:50:14 2014 +1000
Expose properties for the various configuration settings.
The property support isn't ideal, the server relies on the driver to check
first if a setting is possible, applying the setting itself cannot fail.
Thus we can't just check the libinput config status code, which matters mostly
in the sendevents property where we simply check that only a single bit is set
and that the supported modes are equal or more to the requested mode.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 532fe35522dc27c7589b37975e88b185f5b6b191
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed Sep 24 15:58:33 2014 +1000
Require libinput 0.6
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 65a40e2cfc6319b09e711d5d821e12e90b0294b5
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Aug 7 09:56:21 2014 +1000
Add a rudimentary README
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 7522884a9e067a903c34e98b416755d146429732
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Aug 7 09:48:46 2014 +1000
Drop some mention of evdev
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit ef5f0295e77805af2780f4b63a6fc9d2675cc7ce
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Aug 7 09:48:32 2014 +1000
Ship an example config snippet
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit adb4963109fc68ca618e39e51fa86e531a492bef
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Jul 24 16:55:44 2014 +1000
Replace AC_PROG_LIBTOOL with LT_INIT
Former is deprecated in favor of the latter.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit e8c4bbceee203665a5192e1ab6df711893f61834
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Jul 24 10:16:29 2014 +1000
xf86-input-libinput 0.1.2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit e1a9c82dbcbec59f174cb4906eaf1ef77d5f9286
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Jul 24 10:17:51 2014 +1000
Drop two comments mentioning evdev
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit fe81ad3ae257f8063f63f8aa5320827a095a2192
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Jul 24 10:14:15 2014 +1000
Drop the pkgconfig file
We don't export anything, so need to ship it
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 6a6946235979f51169f9256414eb24226cf6f1bc
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Jul 1 11:19:06 2014 +1000
Let libinput take care of pointer acceleration
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 2f03f674260873c4fa14cd9d2896287885469bca
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Jun 26 15:36:49 2014 +1000
xf86-input-libinput 0.1.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 6d634262fd0f42b9bf4237e6adef88201d7c9515
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Jun 26 15:36:25 2014 +1000
Fix distcheck
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 6f91b84fd3bbad62c5364cfd4b6b8743cc08b941
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Jun 26 15:35:44 2014 +1000
Add COPYING file
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 29fa1a6637fe52a67558b3b0793dd56340a37e62
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Jun 26 15:03:10 2014 +1000
xf86-input-libinput 0.1.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 9e664af686ed780271ce26c02582fa1185d38ecd
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Jun 26 15:09:09 2014 +1000
Use the new libinput_ref/unref instead of manual counting.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit c28d90ba698c3cf411b73a0a4f1314ccb7bb9b9f
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Jun 19 14:50:48 2014 +1000
Fix for libinput 0.4.0 API changes
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 3b2e3e6f9e6cbbc2c40bb1bc18603eb241c17338
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Jun 10 09:05:40 2014 +1000
Require libinput 0.3.0
And add fix for the renamed button state enum
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit e7f7ed9303c6a9f9fa7462beb60afc2b2a094fa6
Author: Jonas Ådahl <jadahl@gmail.com>
Date: Mon Jun 2 23:45:23 2014 +0200
Use floating point instead of fixed point numbers
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 163b244ec5a9d5f73e0aa9732be9f4142bac4f06
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Jun 10 09:03:28 2014 +1000
Fix scrolling axis number
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 102c126c02c46f1633e7550fd2bdec658debe053
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Apr 4 15:19:54 2014 +1000
Delete the input device reference on uninit
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit e114d517b500c5e0d30e352dc3a6d11aa41784f1
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Apr 4 15:18:43 2014 +1000
Unset the device user data on device off
Once we turn the device off, we may still get events from it but the pInfo
struct may not be valid anymore to process those events.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 1ab6637b56272bb5cef0568a785e2e5948e6b022
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Mar 28 09:09:02 2014 +1000
zero out the valuator mask before sending touch events
otherwise we might re-submit values from other events
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 16796d08d87a16dfa1ae0eb0f323b2c021cbd4d6
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Mar 25 14:11:36 2014 +1000
Switch to ValuatorMasks for motion and axis events
Allows us to use subpixel data, not that the server does a good job with it.
But at least for scrolling we should now be able to scroll by small amounts
too.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 116a484498d3be1fe89f32bcc1607040101bd0ff
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Mar 25 13:37:19 2014 +1000
Only post rel motion events if we have a non-zero delta
We trunc the li_fixed_t to int, so we don't always have a delta to post
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit b8611394cda21bf002c38379e01d62d61d9be04a
Author: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Date: Fri Mar 7 10:34:46 2014 +1000
Do not set valuators for touch up events
the kernel does not send any ABS_MT_POSITION_X|Y data while releasing
the touch, so use the previous values to set the position of the release.
If it's not done, the touch up occurs at (0,0) and moves dragged elements
to the upper right corner.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 74cd082e15e939648f552d24bec3fdd586d8e1c5
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Mar 7 10:33:31 2014 +1000
Fix up for new libinput API - without touch subtypes
Touch types are now top-level event types.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit ac6e2171d7661336292b2dce64267caf9ea0ddaa
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Mar 7 10:32:44 2014 +1000
Whitespace fix
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit ec5e60c41edb9f5fc736af4785ed210d71c24a8b
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Feb 21 15:58:20 2014 +1000
Reset the fd to -1 after PreInit
We open and remove the device immediately, but the fd was left on the old
value. This makes debugging harder, since the fd looks correct when it isn't.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit c0046e2b418b8e88bd8d50eb2d23bfb5f5aae88b
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Feb 21 13:50:25 2014 +1000
Fix bitmask handling when changing LEDs
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit bee8989c741d693cd7adb20235cd05beb3cd90e0
Author: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Date: Mon Feb 17 18:22:17 2014 -0500
Fix scrolling jumps
libinput currently scales wheel events by DEFAULT_AXIS_STEP_DISTANCE,
which is currently 10.
We may be able to find the value automatically, but it would require
some dark codings that may not be robust.
For the time being, just duplicate the define in libinput.c and remember
to update it if it is changed in the future.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 761603d9e7207f7ebe0a0824c0e0383e383727ac
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Feb 6 11:28:30 2014 +1000
Adjust for new API - current-screen-dimensions callback was removed
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 17826b06dc72cbc897e0f4bbd8d3ef02e23f8a24
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Feb 4 08:45:18 2014 +1000
Keep track of the enabled devices
All libinput devices share the same file descriptor so make sure we don't
remove from the server's select loop until the last device is disabled.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 54da516906904f186f26f4f5413e529dfae291a9
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Feb 4 08:19:29 2014 +1000
Clarify a comment
Whatever xf86AddEnabledDevice does to the fd, it doesn't work with an
epollfd. Should probably investigate that further.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 5f502337d55d075b62b90a068b6a5641fb3711ae
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Feb 4 08:07:22 2014 +1000
Init with default XKB options
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 6a8db18681a49a3b59bda8e62c84269bb03f5e34
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Feb 4 08:01:45 2014 +1000
Add the xorg keycode offset to the key events
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 2b5723909a11f0063a185ec576a6da2b7f37daef
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Jan 31 13:46:19 2014 +1000
Update to latest API
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit f9154fe303fa4a173caec9250c35fef3f08dc14f
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Dec 20 12:55:23 2013 +1000
Silence some compiler warnings
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 0478398202d2694aed2c070fcc8427a6dbb723e0
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Dec 20 11:45:06 2013 +1000
Hook up touch events
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 8a50a17d02671049dcf23e4bca414328af034691
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Dec 20 10:53:51 2013 +1000
Hook up scroll events
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit ec5614d84abe37fff718aa51bba7cc5a6f3a5e7b
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Dec 12 15:24:08 2013 +1000
Baseline for a libinput-based driver
Doesn't do much yet, just the very basic hooks.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|