diff --git a/clutter/clutter-backend.c b/clutter/clutter-backend.c index 4b1795602..d255eee8b 100644 --- a/clutter/clutter-backend.c +++ b/clutter/clutter-backend.c @@ -491,11 +491,6 @@ _clutter_create_backend (void) retval = g_object_new (CLUTTER_TYPE_BACKEND_WIN32, NULL); else #endif -#ifdef CLUTTER_WINDOWING_GDK - if (backend == NULL || backend == I_(CLUTTER_WINDOWING_GDK)) - retval = g_object_new (CLUTTER_TYPE_BACKEND_GDK, NULL); - else -#endif #ifdef CLUTTER_WINDOWING_X11 if (backend == NULL || backend == I_(CLUTTER_WINDOWING_X11)) retval = g_object_new (CLUTTER_TYPE_BACKEND_X11, NULL); @@ -510,6 +505,11 @@ _clutter_create_backend (void) if (backend == NULL || backend == I_(CLUTTER_WINDOWING_EGL)) retval = g_object_new (CLUTTER_TYPE_BACKEND_EGL_NATIVE, NULL); else +#endif +#ifdef CLUTTER_WINDOWING_GDK + if (backend == NULL || backend == I_(CLUTTER_WINDOWING_GDK)) + retval = g_object_new (CLUTTER_TYPE_BACKEND_GDK, NULL); + else #endif if (backend == NULL) g_error ("No default Clutter backend found.");