Blame SOURCES/0002-wayland-dnd-surface-Propagate-commit-to-parent-class.patch

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