summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-04-14 00:32:05 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-04-14 00:32:05 +0000
commitd1d009b4918fc4cac6b8c72c4a580e4302a627d3 (patch)
treebfd574562a93a6916ef0492c3c1458e635da4f9f
parent4465ee54146c3f939c592ffa789d750ca2f0fe41 (diff)
parent6f11165dd1cc6e5f3842a2d01ac709b732658347 (diff)
downloadgtk+-d1d009b4918fc4cac6b8c72c4a580e4302a627d3.tar.gz
Merge branch 'x11-quiet-exit' into 'master'
x11: Be quiet on exit by default See merge request GNOME/gtk!3436
-rw-r--r--gdk/x11/gdkmain-x11.c23
1 files changed, 6 insertions, 17 deletions
diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c
index 8fc8253295..55afd7f036 100644
--- a/gdk/x11/gdkmain-x11.c
+++ b/gdk/x11/gdkmain-x11.c
@@ -185,24 +185,13 @@ gdk_x_io_error (Display *display)
/* This is basically modelled after the code in XLib. We need
* an explicit error handler here, so we can disable our atexit()
* which would otherwise cause a nice segfault.
- * We fprintf(stderr, instead of g_warning() because g_warning()
- * could possibly be redirected to a dialog
+ * We g_debug() instead of g_warning(), because g_warning()
+ * could possibly be redirected to the log
*/
- if (errno == EPIPE)
- {
- g_message ("The application '%s' lost its connection to the display %s;\n"
- "most likely the X server was shut down or you killed/destroyed\n"
- "the application.\n",
- g_get_prgname (),
- display ? DisplayString (display) : NULL);
- }
- else
- {
- g_message ("%s: Fatal IO error %d (%s) on X server %s.\n",
- g_get_prgname (),
- errno, g_strerror (errno),
- display ? DisplayString (display) : NULL);
- }
+ g_debug ("%s: Fatal IO error %d (%s) on X server %s.\n",
+ g_get_prgname (),
+ errno, g_strerror (errno),
+ display ? DisplayString (display) : "");
_exit (1);
}