aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/input/input-manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c
index 69342c73..f04a8ce0 100644
--- a/sway/input/input-manager.c
+++ b/sway/input/input-manager.c
@@ -70,7 +70,8 @@ char *input_device_get_identifier(struct wlr_input_device *device) {
70 70
71 char *p = name; 71 char *p = name;
72 for (; *p; ++p) { 72 for (; *p; ++p) {
73 if (*p == ' ') { 73 // There are in fact input devices with unprintable characters in its name
74 if (*p == ' ' || !isprint(*p)) {
74 *p = '_'; 75 *p = '_';
75 } 76 }
76 } 77 }