|
|
c80064 |
From f37ef55525777f742051cb988341fa1bab403666 Mon Sep 17 00:00:00 2001
|
|
|
c80064 |
From: Robert Mader <robert.mader@posteo.de>
|
|
|
c80064 |
Date: Mon, 15 Apr 2019 02:02:10 +0200
|
|
|
c80064 |
Subject: [PATCH 2/2] wayland/dnd-surface: Propagate commit to parent class
|
|
|
c80064 |
|
|
|
c80064 |
We need to call the underlying actor-surface so the actor
|
|
|
c80064 |
state is synced, otherwise surface state like the scale factor
|
|
|
c80064 |
does not get applied.
|
|
|
c80064 |
|
|
|
c80064 |
Fixes https://gitlab.gnome.org/GNOME/mutter/issues/550
|
|
|
c80064 |
|
|
|
c80064 |
https://gitlab.gnome.org/GNOME/mutter/merge_requests/537
|
|
|
c80064 |
(cherry picked from commit 01d0316fd703872a2470a351f906ffa4605a647e)
|
|
|
c80064 |
---
|
|
|
c80064 |
src/wayland/meta-wayland-dnd-surface.c | 4 ++++
|
|
|
c80064 |
1 file changed, 4 insertions(+)
|
|
|
c80064 |
|
|
|
c80064 |
diff --git a/src/wayland/meta-wayland-dnd-surface.c b/src/wayland/meta-wayland-dnd-surface.c
|
|
|
c80064 |
index 8ddeb2a7bd..7aa7e3be2f 100644
|
|
|
c80064 |
--- a/src/wayland/meta-wayland-dnd-surface.c
|
|
|
c80064 |
+++ b/src/wayland/meta-wayland-dnd-surface.c
|
|
|
c80064 |
@@ -51,9 +51,13 @@ dnd_surface_commit (MetaWaylandSurfaceRole *surface_role,
|
|
|
c80064 |
{
|
|
|
c80064 |
MetaWaylandSurface *surface =
|
|
|
c80064 |
meta_wayland_surface_role_get_surface (surface_role);
|
|
|
c80064 |
+ MetaWaylandSurfaceRoleClass *surface_role_class =
|
|
|
c80064 |
+ META_WAYLAND_SURFACE_ROLE_CLASS (meta_wayland_surface_role_dnd_parent_class);
|
|
|
c80064 |
|
|
|
c80064 |
meta_wayland_compositor_add_frame_callback_surface (surface->compositor,
|
|
|
c80064 |
surface);
|
|
|
c80064 |
+
|
|
|
c80064 |
+ surface_role_class->commit (surface_role, pending);
|
|
|
c80064 |
}
|
|
|
c80064 |
|
|
|
c80064 |
static void
|
|
|
c80064 |
--
|
|
|
c80064 |
2.31.1
|
|
|
c80064 |
|