compositor: Conditionalize some more Wayland support

This commit is contained in:
Jasper St. Pierre 2014-08-27 12:56:05 -04:00
parent 09aefdba43
commit 2f9840a51c

View File

@ -406,9 +406,12 @@ meta_window_actor_update_surface (MetaWindowActor *self)
MetaWindow *window = priv->window;
MetaSurfaceActor *surface_actor;
#ifdef HAVE_WAYLAND
if (window->surface)
surface_actor = window->surface->surface_actor;
else if (!meta_is_wayland_compositor ())
else
#endif
if (!meta_is_wayland_compositor ())
surface_actor = meta_surface_actor_x11_new (window);
else
surface_actor = NULL;