mir: try mir before x11

This commit is contained in:
William Hua 2017-03-10 10:50:23 -05:00
parent a1eb3cb2e9
commit 0c1cbcfe60
2 changed files with 3 additions and 4 deletions

View File

@ -272,12 +272,12 @@ static GdkBackend gdk_backends[] = {
#ifdef GDK_WINDOWING_WAYLAND
{ "wayland", _gdk_wayland_display_open },
#endif
#ifdef GDK_WINDOWING_MIR
{ "mir", _gdk_mir_display_open },
#endif
#ifdef GDK_WINDOWING_X11
{ "x11", _gdk_x11_display_open },
#endif
#ifdef GDK_WINDOWING_MIR
{ "mir", _gdk_mir_display_open },
#endif
#ifdef GDK_WINDOWING_BROADWAY
{ "broadway", _gdk_broadway_display_open },
#endif

View File

@ -183,7 +183,6 @@ _gdk_mir_display_open (const gchar *display_name)
if (!mir_connection_is_valid (connection))
{
g_printerr ("Failed to connect to Mir: %s\n", mir_connection_get_error_message (connection));
mir_connection_release (connection);
return NULL;
}