We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c763b0 commit 5e63bfcCopy full SHA for 5e63bfc
src/tslib.c
@@ -475,13 +475,16 @@ static int xf86TslibInit(__attribute__ ((unused)) InputDriverPtr drv,
475
if (!priv->valuators)
476
return BadValue;
477
478
- /* FIXME get the path from libts */
+#ifdef TSLIB_VERSION_EVENTPATH
479
+ pInfo->fd = open(ts_get_eventpath(priv->ts), O_RDONLY);
480
+#else
481
if (!s) {
482
xf86IDrvMsg(pInfo, X_ERROR, "Please provide Option path or Device");
483
484
}
485
486
pInfo->fd = open(s, O_RDONLY);
487
+#endif
488
if (pInfo->fd == -1) {
489
xf86IDrvMsg(pInfo, X_ERROR, "Couldn't open %s\n", s);
490
0 commit comments