diff options
| author | György Kurucz <me@kuruczgy.com> | 2024-11-20 19:15:31 +0100 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2024-11-28 20:41:01 +0100 |
| commit | 39ddab8c8617f256e195250f31400ea33af8b6fc (patch) | |
| tree | 53710728e5b64a58f32074eb276a893e9a3baea6 | |
| parent | 6cdc1315096e847c81702ed37328603c637983a5 (diff) | |
input/libinput: fix builtin device detection logic
Fixes: #8468
(cherry picked from commit 1d783794b508e529bdc665296d690057c93997df)
| -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 2fec290e..5754fa69 100644 --- a/sway/input/libinput.c +++ b/sway/input/libinput.c @@ -410,8 +410,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-"; |
