Description: Add touchscreen support for other xi2 devices.
Author: Chad MILLER <chad.miller@canonical.com>
Forwarded: yes

Index: chromium-110.0.5481.77/ui/events/devices/x11/touch_factory_x11.cc
===================================================================
--- chromium-110.0.5481.77.orig/ui/events/devices/x11/touch_factory_x11.cc
+++ chromium-110.0.5481.77/ui/events/devices/x11/touch_factory_x11.cc
@@ -339,8 +339,12 @@ void TouchFactory::CacheTouchscreenIds(x
   const auto it = base::ranges::find(touchscreens, static_cast<int>(device_id),
                                      &TouchscreenDevice::id);
   // Internal displays will have a vid and pid of 0. Ignore them.
-  if (it != touchscreens.end() && it->vendor_id && it->product_id)
+  if (it != touchscreens.end() && it->vendor_id && it->product_id) { 
     touchscreen_ids_.emplace(it->vendor_id, it->product_id);
+    VLOG(1) << "adding device id " << static_cast<uint16_t>(device_id) << " to touchscreen list";
+  } else {
+    VLOG(1) << "NOT adding device id " << static_cast<uint16_t>(device_id) << " to touchscreen list because it as a vid or pid zero";
+  }
 }
 
 bool TouchFactory::ShouldProcessEventForDevice(
