forked from AuroraMiddleware/gtk
x11: Don't warn if the display is closed
This causes a storm of warnings from all applications in the logs whenever the display goes away, and is not useful.
This commit is contained in:
parent
7d18a86140
commit
1c51da82bd
@ -239,7 +239,7 @@ gdk_x_io_error (Display *display)
|
||||
*/
|
||||
if (errno == EPIPE)
|
||||
{
|
||||
g_warning ("The application '%s' lost its connection to the display %s;\n"
|
||||
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 (),
|
||||
@ -247,7 +247,7 @@ gdk_x_io_error (Display *display)
|
||||
}
|
||||
else
|
||||
{
|
||||
g_warning ("%s: Fatal IO error %d (%s) on X server %s.\n",
|
||||
g_message ("%s: Fatal IO error %d (%s) on X server %s.\n",
|
||||
g_get_prgname (),
|
||||
errno, g_strerror (errno),
|
||||
display ? DisplayString (display) : gdk_get_display_arg_name ());
|
||||
|
Loading…
Reference in New Issue
Block a user