forked from AuroraMiddleware/gtk
wayland: Don't warn if we loose the compositor connection
And instead, exit cleanly. This avoids filling the logs with these warnings from every single application that has a connection to the compositor.
This commit is contained in:
parent
c70ba3a4f0
commit
43b2b107f1
@ -89,7 +89,10 @@ gdk_event_source_check (GSource *base)
|
|||||||
if (source->pfd.revents & G_IO_IN)
|
if (source->pfd.revents & G_IO_IN)
|
||||||
{
|
{
|
||||||
if (wl_display_read_events (display_wayland->wl_display) < 0)
|
if (wl_display_read_events (display_wayland->wl_display) < 0)
|
||||||
g_error ("Error reading events from display: %s", g_strerror (errno));
|
{
|
||||||
|
g_message ("Error reading events from display: %s", g_strerror (errno));
|
||||||
|
_exit (1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
wl_display_cancel_read (display_wayland->wl_display);
|
wl_display_cancel_read (display_wayland->wl_display);
|
||||||
|
Loading…
Reference in New Issue
Block a user