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>
This commit is contained in:
parent
bddcaf0886
commit
62b1fac0b5
|
@ -289,14 +289,13 @@ wm_selection_callback(CallbackListPtr *p, void *data, void *arg)
|
||||||
DeleteCallback(&SelectionCallback, wm_selection_callback, xwl_screen);
|
DeleteCallback(&SelectionCallback, wm_selection_callback, xwl_screen);
|
||||||
}
|
}
|
||||||
|
|
||||||
_X_NORETURN
|
|
||||||
static void _X_ATTRIBUTE_PRINTF(1, 0)
|
static void _X_ATTRIBUTE_PRINTF(1, 0)
|
||||||
xwl_log_handler(const char *format, va_list args)
|
xwl_log_handler(const char *format, va_list args)
|
||||||
{
|
{
|
||||||
char msg[256];
|
char msg[256];
|
||||||
|
|
||||||
vsnprintf(msg, sizeof msg, format, args);
|
vsnprintf(msg, sizeof msg, format, args);
|
||||||
FatalError("%s", msg);
|
ErrorF("XWAYLAND: %s", msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XWL_HAS_XWAYLAND_EXTENSION
|
#ifdef XWL_HAS_XWAYLAND_EXTENSION
|
||||||
|
|
Loading…
Reference in New Issue