Exit cleanly if no display is found

We should not try to create an inspector window and generate
tons of ugly warnings in this case.
This commit is contained in:
Matthias Clasen 2018-03-11 08:14:14 -04:00
parent 9ded44b3de
commit da8e83f9cb

View File

@ -777,7 +777,7 @@ gtk_init_check (void)
ret = gdk_display_open_default () != NULL; ret = gdk_display_open_default () != NULL;
if (gtk_get_debug_flags () & GTK_DEBUG_INTERACTIVE) if (ret && (gtk_get_debug_flags () & GTK_DEBUG_INTERACTIVE))
gtk_window_set_interactive_debugging (TRUE); gtk_window_set_interactive_debugging (TRUE);
return ret; return ret;