build: Allow disabling xwayland
Mostly moving things around to allow a build without xwayland. Note that more work might still be needed once the x11 build option lands as that would allow us to have a proper xwayland only build without the x server part. Related: https://gitlab.gnome.org/GNOME/mutter/-/issues/2272 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2399>
This commit is contained in:

committed by
Marge Bot

parent
7eb9797b84
commit
6e818c8c38
@ -31,7 +31,10 @@
|
||||
#include "wayland/meta-wayland-buffer.h"
|
||||
#include "wayland/meta-wayland-presentation-time-private.h"
|
||||
#include "wayland/meta-wayland-private.h"
|
||||
|
||||
#ifdef HAVE_XWAYLAND
|
||||
#include "wayland/meta-xwayland.h"
|
||||
#endif
|
||||
|
||||
typedef struct _MetaWaylandCursorSurfacePrivate MetaWaylandCursorSurfacePrivate;
|
||||
|
||||
@ -89,6 +92,7 @@ cursor_sprite_prepare_at (MetaCursorSprite *cursor_sprite,
|
||||
MetaWaylandSurfaceRole *role = META_WAYLAND_SURFACE_ROLE (cursor_surface);
|
||||
MetaWaylandSurface *surface = meta_wayland_surface_role_get_surface (role);
|
||||
|
||||
#ifdef HAVE_XWAYLAND
|
||||
if (!meta_xwayland_is_xwayland_surface (surface))
|
||||
{
|
||||
MetaWaylandSurfaceRole *surface_role =
|
||||
@ -119,6 +123,8 @@ cursor_sprite_prepare_at (MetaCursorSprite *cursor_sprite,
|
||||
surface->buffer_transform);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
meta_wayland_surface_update_outputs (surface);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user