freebsd-ports/x11-drivers/xf86-input-mutouch/files/patch-git_03_7bf5e0d
Baptiste Daroussin b1444a2b4c Import few patches from upstream to allow building with newer xorg
Note that those drivers are barely maintained and might disappear in the futur

PR:		216274
Submitted by:	matthew@reztek.cz
2017-01-23 22:36:57 +00:00

36 lines
1.2 KiB
Text

From 7bf5e0d8c1863079330196dbe0efb230d74eeb70 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue, 19 Jul 2011 12:57:00 +1000
Subject: =?UTF-8?q?Use=20xf86SetStrOption=20for=20Type=20and=20Device=20?=
=?UTF-8?q?=E2=86=92=20prints=20to=20the=20log?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
diff --git a/src/xf86MuTouch.c b/src/xf86MuTouch.c
index 3b9b6b8..b35d1da 100644
--- src/xf86MuTouch.c
+++ src/xf86MuTouch.c
@@ -1074,7 +1074,7 @@ xf86MuTInit(InputDriverPtr drv,
int portrait=0;
int rc = Success;
- str = xf86FindOptionValue(pInfo->options, "Type");
+ str = xf86SetStrOption(pInfo->options, "Type", NULL);
if (str && (xf86NameCmp(str, "finger") == 0)) {
rc = xf86MuTAllocateFinger(drv, pInfo);
}
@@ -1091,7 +1091,7 @@ xf86MuTInit(InputDriverPtr drv,
}
priv = pInfo->private;
- str = xf86FindOptionValue(pInfo->options, "Device");
+ str = xf86SetStrOption(pInfo->options, "Device", NULL);
if (!str) {
xf86Msg(X_ERROR, "%s: No Device specified in MuTouch module config.\n",
pInfo->name);
--
cgit v0.10.2