mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
compositor: Conditionalize some more Wayland support
This commit is contained in:
parent
09aefdba43
commit
2f9840a51c
@ -406,9 +406,12 @@ meta_window_actor_update_surface (MetaWindowActor *self)
|
|||||||
MetaWindow *window = priv->window;
|
MetaWindow *window = priv->window;
|
||||||
MetaSurfaceActor *surface_actor;
|
MetaSurfaceActor *surface_actor;
|
||||||
|
|
||||||
|
#ifdef HAVE_WAYLAND
|
||||||
if (window->surface)
|
if (window->surface)
|
||||||
surface_actor = window->surface->surface_actor;
|
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);
|
surface_actor = meta_surface_actor_x11_new (window);
|
||||||
else
|
else
|
||||||
surface_actor = NULL;
|
surface_actor = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user