summaryrefslogtreecommitdiff
path: root/tools/shared.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-07-19 14:10:32 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-07-19 14:10:32 +1000
commita3cc5f3f649ea87fa1a08fb2ff3852ddea76352f (patch)
treeeb517f723a47ba35db6f2cf14f46dd7d6f4fbe40 /tools/shared.c
parentd5c0aed8a35008f0307b43576f9739f9ce2886f6 (diff)
downloadlibinput-a3cc5f3f649ea87fa1a08fb2ff3852ddea76352f.tar.gz
tools: always set the log handler for debug-events and debug-gui
This way errors are highlighted in red even without --verbose Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/shared.c')
-rw-r--r--tools/shared.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/shared.c b/tools/shared.c
index 2a53343d..f68ffead 100644
--- a/tools/shared.c
+++ b/tools/shared.c
@@ -267,10 +267,9 @@ tools_open_udev(const char *seat, bool verbose, bool *grab)
goto out;
}
- if (verbose) {
- libinput_log_set_handler(li, log_handler);
+ libinput_log_set_handler(li, log_handler);
+ if (verbose)
libinput_log_set_priority(li, LIBINPUT_LOG_PRIORITY_DEBUG);
- }
if (libinput_udev_assign_seat(li, seat)) {
fprintf(stderr, "Failed to set seat\n");