summaryrefslogtreecommitdiff
path: root/src/wayland/meta-wayland-cursor-surface.c
diff options
context:
space:
mode:
authorBilal Elmoussaoui <belmouss@redhat.com>2022-06-01 10:45:20 +0200
committerBilal Elmoussaoui <belmouss@redhat.com>2023-05-15 20:41:54 +0200
commit02a436d607481492a37ad15fcc401abf6385eeff (patch)
treec01b511ad38bf923546b417bc4418032e46df69d /src/wayland/meta-wayland-cursor-surface.c
parenta27b9d9707b0c5ccfd6aec3e5f335937c1796429 (diff)
downloadmutter-02a436d607481492a37ad15fcc401abf6385eeff.tar.gz
wayland: Move surface check to MetaWaylandSurface
Allows dropping various HAVE_XWAYLAND ifdef as the function would always return false if Mutter is built without XWayland Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2445>
Diffstat (limited to 'src/wayland/meta-wayland-cursor-surface.c')
-rw-r--r--src/wayland/meta-wayland-cursor-surface.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wayland/meta-wayland-cursor-surface.c b/src/wayland/meta-wayland-cursor-surface.c
index c75fe0ee3..10f632eb3 100644
--- a/src/wayland/meta-wayland-cursor-surface.c
+++ b/src/wayland/meta-wayland-cursor-surface.c
@@ -92,8 +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))
+ if (!meta_wayland_surface_is_xwayland (surface))
{
MetaWaylandSurfaceRole *surface_role =
META_WAYLAND_SURFACE_ROLE (cursor_surface);
@@ -123,7 +122,6 @@ cursor_sprite_prepare_at (MetaCursorSprite *cursor_sprite,
surface->buffer_transform);
}
}
-#endif
meta_wayland_surface_update_outputs (surface);
}