main: Fix compilation with wayland disabled

https://bugzilla.gnome.org/show_bug.cgi?id=769024
This commit is contained in:
Jonas Ådahl 2016-07-21 18:26:08 +08:00
parent 991f2d696a
commit ad7ec6b979

View File

@ -441,8 +441,10 @@ meta_init (void)
calculate_compositor_configuration (&compositor_type, &backend_type); calculate_compositor_configuration (&compositor_type, &backend_type);
#ifdef HAVE_WAYLAND
if (compositor_type == META_COMPOSITOR_TYPE_WAYLAND) if (compositor_type == META_COMPOSITOR_TYPE_WAYLAND)
meta_set_is_wayland_compositor (TRUE); meta_set_is_wayland_compositor (TRUE);
#endif
if (g_get_home_dir ()) if (g_get_home_dir ())
if (chdir (g_get_home_dir ()) < 0) if (chdir (g_get_home_dir ()) < 0)