summaryrefslogtreecommitdiff
path: root/src/wayland/meta-wayland-dnd-surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland/meta-wayland-dnd-surface.c')
-rw-r--r--src/wayland/meta-wayland-dnd-surface.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wayland/meta-wayland-dnd-surface.c b/src/wayland/meta-wayland-dnd-surface.c
index bdd0e168b..20e883b09 100644
--- a/src/wayland/meta-wayland-dnd-surface.c
+++ b/src/wayland/meta-wayland-dnd-surface.c
@@ -87,7 +87,13 @@ dnd_surface_find_logical_monitor (MetaWaylandActorSurface *actor_surface)
static int
dnd_subsurface_get_geometry_scale (MetaWaylandActorSurface *actor_surface)
{
- if (meta_is_stage_views_scaled ())
+ MetaWaylandSurfaceRole *role = META_WAYLAND_SURFACE_ROLE (actor_surface);
+ MetaWaylandSurface *surface = meta_wayland_surface_role_get_surface (role);
+ MetaContext *context =
+ meta_wayland_compositor_get_context (surface->compositor);
+ MetaBackend *backend = meta_context_get_backend (context);
+
+ if (meta_backend_is_stage_views_scaled (backend))
{
return 1;
}