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

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