From 24e240642984a3b7ee2fba0828eb4375e901aafc Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Sat, 16 Dec 2017 13:00:31 -0500 Subject: strip whitespace for device id --- sway/input/input-manager.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sway/input/input-manager.c') diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c index 1950b6d9..e4558366 100644 --- a/sway/input/input-manager.c +++ b/sway/input/input-manager.c @@ -9,6 +9,7 @@ #include "sway/input/input-manager.h" #include "sway/input/seat.h" #include "sway/server.h" +#include "stringop.h" #include "list.h" #include "log.h" @@ -36,6 +37,7 @@ static char *get_device_identifier(struct wlr_input_device *device) { int vendor = device->vendor; int product = device->product; char *name = strdup(device->name); + name = strip_whitespace(name); char *p = name; for (; *p; ++p) { -- cgit v1.2.3-54-g00ecf