1From ea5bf3e8913106fd4767d62ae8f9afcd1ef0e387 Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Mon, 18 Nov 2019 12:23:48 +0800
4Subject: [PATCH 09/79] compositor: Force applying subsurface position directly
5
6Currently the subsurface's position would only be applied when
7committing it's parent, which might not always happen.
8
9Force applying new position directly to avoid that.
10
11Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
12---
13 libweston/compositor.c | 3 +++
14 1 file changed, 3 insertions(+)
15
16diff --git a/libweston/compositor.c b/libweston/compositor.c
17index caec3e23..930d4f54 100644
18--- a/libweston/compositor.c
19+++ b/libweston/compositor.c
20@@ -4955,6 +4955,9 @@ subsurface_set_position(struct wl_client *client,
21 	sub->position.x = x;
22 	sub->position.y = y;
23 	sub->position.set = 1;
24+
25+	// HACK: Force applying position directly
26+	weston_subsurface_parent_commit(sub, 0);
27 }
28
29 static struct weston_subsurface *
30--
312.20.1
32
33