mirror of
https://github.com/swaywm/sway.git
synced 2025-01-31 05:06:45 +00:00
input/libinput: fix builtin device detection logic
Fixes: #8468
(cherry picked from commit 1d783794b5
)
This commit is contained in:
parent
6cdc131509
commit
39ddab8c86
|
@ -410,8 +410,8 @@ bool sway_libinput_device_is_builtin(struct sway_input_device *sway_device) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const char prefix_platform[] = "platform-";
|
const char prefix_platform[] = "platform-";
|
||||||
if (strncmp(id_path, prefix_platform, strlen(prefix_platform)) != 0) {
|
if (strncmp(id_path, prefix_platform, strlen(prefix_platform)) == 0) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char prefix_pci[] = "pci-";
|
const char prefix_pci[] = "pci-";
|
||||||
|
|
Loading…
Reference in a new issue