summaryrefslogtreecommitdiff
path: root/src/wayland/meta-wayland-surface.h
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-surface.h
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-surface.h')
-rw-r--r--src/wayland/meta-wayland-surface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wayland/meta-wayland-surface.h b/src/wayland/meta-wayland-surface.h
index 91cc64c0b..63f160894 100644
--- a/src/wayland/meta-wayland-surface.h
+++ b/src/wayland/meta-wayland-surface.h
@@ -419,6 +419,7 @@ meta_wayland_surface_state_new (void)
{
return g_object_new (META_TYPE_WAYLAND_SURFACE_STATE, NULL);
}
+gboolean meta_wayland_surface_is_xwayland (MetaWaylandSurface *surface);
static inline GNode *
meta_get_next_subsurface_sibling (GNode *n)