sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 1d783794b508e529bdc665296d690057c93997df
parent 4faf0f90988b854d354ce1c8d152884294269de0
Author: György Kurucz <me@kuruczgy.com>
Date:   Wed, 20 Nov 2024 19:15:31 +0100

input/libinput: fix builtin device detection logic

Fixes: #8468

Diffstat:
Msway/input/libinput.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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-";