diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2024-11-20 19:15:31 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2024-11-20 19:15:31 +0100 |
| commit | 9eb070dd98c589829f055decf9a5355bfd6fbb17 (patch) | |
| tree | 1671266ad5624d623f44ba3b42ba22ae8dce1a14 | |
| parent | e5d1b9c556fac6c4ff1f7ed6531b075752ec1853 (diff) | |
input/libinput: fix builtin device detection logic
Fixes: #8468
| -rw-r--r-- | sway/input/libinput.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/libinput.c b/sway/input/libinput.c index ad859270..b9df8d0b 100644 --- a/sway/input/libinput.c +++ b/sway/input/libinput.c @@ -418,8 +418,8 @@ bool sway_libinput_device_is_builtin(struct sway_input_device *sway_device) { } const char prefix_platform[] = "platform-"; - if (strncmp(id_path, prefix_platform, strlen(prefix_platform)) != 0) { - return false; + if (strncmp(id_path, prefix_platform, strlen(prefix_platform)) == 0) { + return true; } const char prefix_pci[] = "pci-"; |
