mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 16:20:03 +01:00
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>
(cherry picked from commit 62b1fac0b5)
This commit is contained in:
parent
070f6a99f5
commit
87c1df306b
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue