e_input: Set device to virtual only when devpath contains 'input' substring 67/307367/1
authorduna.oh <duna.oh@samsung.com>
Thu, 7 Mar 2024 09:25:55 +0000 (18:25 +0900)
committerduna.oh <duna.oh@samsung.com>
Thu, 7 Mar 2024 10:23:40 +0000 (19:23 +0900)
Do not set devices with devpath containing 'misc' or 'rc' as virtual,
considering them as physically connected devices like Bluetooth remocons.

Change-Id: I11fcf14953652cf30a1d243ed4cf54dea37e00e4

src/bin/e_input_inputs.c

index 88fdf465d612f2ac4cdf4667d24764304def166e..68e340d0ee71abee391f5d9c572b2049ecdc653a 100644 (file)
@@ -427,7 +427,7 @@ _e_input_device_get_ecore_device_subclass(E_Input_Evdev *edev, Ecore_Device_Clas
 
    udev_device = libinput_device_get_udev_device(edev->device);
    devpath = udev_device_get_property_value(udev_device, "DEVPATH");
-   if (devpath && strstr(devpath, "virtual"))
+   if (devpath && strstr(devpath, "virtual/input"))
      {
         if (clas == ECORE_DEVICE_CLASS_MOUSE)
           subclas = ECORE_DEVICE_SUBCLASS_VIRTUAL_MOUSE;