summaryrefslogtreecommitdiff
path: root/src/wayland/meta-xwayland.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-xwayland.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-xwayland.c')
-rw-r--r--src/wayland/meta-xwayland.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c
index 8a50b93f3..12d2b1702 100644
--- a/src/wayland/meta-xwayland.c
+++ b/src/wayland/meta-xwayland.c
@@ -146,16 +146,6 @@ meta_xwayland_handle_wl_surface_id (MetaWindow *window,
}
}
-gboolean
-meta_xwayland_is_xwayland_surface (MetaWaylandSurface *surface)
-{
- MetaWaylandCompositor *compositor = surface->compositor;
- MetaXWaylandManager *manager = &compositor->xwayland_manager;
-
- return surface->resource != NULL &&
- wl_resource_get_client (surface->resource) == manager->client;
-}
-
static gboolean
try_display (int display,
char **filename_out,