Blame SOURCES/0009-try-to-connect-input-devices-to-the-right-parent.patch

33b0a4
From f6138333811f7f2bf01551c70f5726f7c556dd36 Mon Sep 17 00:00:00 2001
33b0a4
From: Lyonel Vincent <lyonel@ezix.org>
33b0a4
Date: Fri, 3 Apr 2020 22:42:21 +0200
33b0a4
Subject: [PATCH 09/17] try to connect input devices to the right parent
33b0a4
33b0a4
---
33b0a4
 src/core/input.cc | 6 ++++++
33b0a4
 1 file changed, 6 insertions(+)
33b0a4
33b0a4
diff --git a/src/core/input.cc b/src/core/input.cc
33b0a4
index a8d8eaf45cb3..ab37d37c3863 100644
33b0a4
--- a/src/core/input.cc
33b0a4
+++ b/src/core/input.cc
33b0a4
@@ -52,6 +52,12 @@ bool scan_input(hwNode & n)
33b0a4
     if(!e.hassubdir("id")) continue;
33b0a4
 
33b0a4
     hwNode *device = n.findChildByBusInfo(e.leaf().businfo());
33b0a4
+    if(!device)
33b0a4
+    {
33b0a4
+      device = n.findChildByBusInfo(e.leaf().parent().businfo());
33b0a4
+      if(device)
33b0a4
+        device = device->addChild(hwNode("input", hw::input));
33b0a4
+    }
33b0a4
     if(!device)
33b0a4
       device = n.addChild(hwNode("input", hw::input));
33b0a4
     else
33b0a4
-- 
33b0a4
2.17.1
33b0a4