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