[gtk+] wayland: Don't warn if we loose the compositor connection
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Don't warn if we loose the compositor connection
- Date: Wed, 30 Nov 2016 18:45:29 +0000 (UTC)
commit 92a1abcd2321a8455bb924b97403803a4833a060
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Nov 30 13:43:54 2016 -0500
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.
gdk/wayland/gdkeventsource.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkeventsource.c b/gdk/wayland/gdkeventsource.c
index a239cab..1420917 100644
--- a/gdk/wayland/gdkeventsource.c
+++ b/gdk/wayland/gdkeventsource.c
@@ -89,7 +89,10 @@ gdk_event_source_check (GSource *base)
if (source->pfd.revents & G_IO_IN)
{
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
wl_display_cancel_read (display_wayland->wl_display);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]