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

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