mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
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>
(cherry picked from commit a3cc5f3f64)
This commit is contained in:
parent
a9338412b0
commit
5781f29612
1 changed files with 2 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue