diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2023-03-08 11:46:13 +0100 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2023-04-07 13:53:12 +0200 |
commit | 62b1fac0b5c5b9eeeca7a66cba6398c211acc504 (patch) | |
tree | ac0b81427009d0e2031b018d67c47c9509f22b47 /hw/xwayland | |
parent | bddcaf08867c449ad847db6adf1ca32f42977de0 (diff) |
xwayland: Make Wayland logs non-fatal
The Wayland library may log warnings, we do not need to make that fatal
to the Xserver.
By killing the Xserver whenever a warning is raised, we hide other log
messages that might be also interesting.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Diffstat (limited to 'hw/xwayland')
-rw-r--r-- | hw/xwayland/xwayland.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/xwayland/xwayland.c b/hw/xwayland/xwayland.c index fc2b696d1..ca75ad7f1 100644 --- a/hw/xwayland/xwayland.c +++ b/hw/xwayland/xwayland.c @@ -289,14 +289,13 @@ wm_selection_callback(CallbackListPtr *p, void *data, void *arg) DeleteCallback(&SelectionCallback, wm_selection_callback, xwl_screen); } -_X_NORETURN static void _X_ATTRIBUTE_PRINTF(1, 0) xwl_log_handler(const char *format, va_list args) { char msg[256]; vsnprintf(msg, sizeof msg, format, args); - FatalError("%s", msg); + ErrorF("XWAYLAND: %s", msg); } #ifdef XWL_HAS_XWAYLAND_EXTENSION |