summaryrefslogtreecommitdiff
path: root/packages/xorg-xserver/xserver-kdrive/tslib-default-device.patch
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-09-09 00:00:20 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-09-09 00:00:20 +0000
commit2c67f7bcc05a97ffd2d31e64524b437e41d9d8b7 (patch)
treeb4f98dda6ecf5dffd5ae5947a31af711f9dfb739 /packages/xorg-xserver/xserver-kdrive/tslib-default-device.patch
parent0ab24892b0ac70a43d7fb8cd22ae9271a382127a (diff)
parent7d36e174f745ff0c1f3a1a1e3971668056981e13 (diff)
merge of '66ade0070cf3f1ade4dad0f5a9286530409b0feb'
and '71b3a433c7a64638a3d2bdc28a87d962bf4a2c8c'
Diffstat (limited to 'packages/xorg-xserver/xserver-kdrive/tslib-default-device.patch')
-rw-r--r--packages/xorg-xserver/xserver-kdrive/tslib-default-device.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/xorg-xserver/xserver-kdrive/tslib-default-device.patch b/packages/xorg-xserver/xserver-kdrive/tslib-default-device.patch
new file mode 100644
index 0000000000..c1bc49f58e
--- /dev/null
+++ b/packages/xorg-xserver/xserver-kdrive/tslib-default-device.patch
@@ -0,0 +1,15 @@
+Index: xorg-server-1.4/hw/kdrive/linux/tslib.c
+===================================================================
+--- xorg-server-1.4.orig/hw/kdrive/linux/tslib.c 2007-09-08 19:58:08.000000000 +0200
++++ xorg-server-1.4/hw/kdrive/linux/tslib.c 2007-09-08 19:58:09.000000000 +0200
+@@ -121,6 +121,10 @@
+
+ private->raw_event_hook = NULL;
+ private->raw_event_closure = NULL;
++ if (!pi->path) {
++ pi->path = "/dev/input/touchscreen0";
++ ErrorF("[tslib/TslibEnable] no device path given, trying %s\n", pi->path);
++ }
+ private->tsDev = ts_open(pi->path, 0);
+ private->fd = ts_fd(private->tsDev);
+ if (!private->tsDev || ts_config(private->tsDev) || private->fd < 0) {