--- mutter-3.24.0/src/core/main.c.orig	2017-03-25 14:46:23.419072671 +0000
+++ mutter-3.24.0/src/core/main.c	2017-03-25 14:54:00.250293293 +0000
@@ -443,11 +443,13 @@
 #endif /* HAVE_WAYLAND */
     *compositor_type = META_COMPOSITOR_TYPE_X11;
 
+#ifdef HAVE_WAYLAND
   if (opt_nested)
     {
       *backend_gtype = META_TYPE_BACKEND_X11_NESTED;
       return;
     }
+#endif /* HAVE_WAYLAND */
 
 #ifdef HAVE_NATIVE_BACKEND
   if (opt_display_server)
