One of the changes going into ABI 12 were that the server calls Uninit even
on driver-hotplugged devices.

Signed-off-by: Peter Hutterer <[email protected]>
---
 src/wcmConfig.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/wcmConfig.c b/src/wcmConfig.c
index afb5e0a..7863167 100644
--- a/src/wcmConfig.c
+++ b/src/wcmConfig.c
@@ -249,6 +249,8 @@ static void wcmUninit(InputDriverPtr drv, InputInfoPtr 
pInfo, int flags)
 
        DBG(1, priv, "\n");
 
+       /* Server 1.10 will UnInit all devices for us */
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 12
        if (priv->isParent)
        {
                /* HAL removal sees the parent device removed first. */
@@ -273,6 +275,7 @@ static void wcmUninit(InputDriverPtr drv, InputInfoPtr 
pInfo, int flags)
                free(pInfo->name);
                pInfo->name = NULL;
        }
+#endif
 
        if (priv->tool)
        {
-- 
1.7.4


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to