diff options
author | Bilal Elmoussaoui <belmouss@redhat.com> | 2022-06-01 10:45:20 +0200 |
---|---|---|
committer | Bilal Elmoussaoui <belmouss@redhat.com> | 2023-05-15 20:41:54 +0200 |
commit | 02a436d607481492a37ad15fcc401abf6385eeff (patch) | |
tree | c01b511ad38bf923546b417bc4418032e46df69d /src/wayland/meta-xwayland-dnd.c | |
parent | a27b9d9707b0c5ccfd6aec3e5f335937c1796429 (diff) | |
download | mutter-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-dnd.c')
-rw-r--r-- | src/wayland/meta-xwayland-dnd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland/meta-xwayland-dnd.c b/src/wayland/meta-xwayland-dnd.c index 314880cdb..b4a679162 100644 --- a/src/wayland/meta-xwayland-dnd.c +++ b/src/wayland/meta-xwayland-dnd.c @@ -1033,7 +1033,7 @@ meta_xwayland_dnd_handle_xfixes_selection_notify (MetaWaylandCompositor *composi focus = compositor->seat->pointer->focus_surface; if (event->owner != None && event->owner != x11_display->selection.xwindow && - focus && meta_xwayland_is_xwayland_surface (focus)) + focus && meta_wayland_surface_is_xwayland (focus)) { dnd->source = meta_wayland_data_source_xwayland_new (dnd, compositor); meta_wayland_data_device_set_dnd_source (&compositor->seat->data_device, |