1From f303263ecab117e042012c93885ae1721384747e Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Fri, 22 Jul 2022 18:40:49 +0800
4Subject: [PATCH 16/17] HACK: qt5wayland: Set size in
5 wl_subsurface_set_position()
6
7Tested with hacked enlightenment.
8
9Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
10---
11 src/client/qwaylandwindow.cpp | 1 +
12 1 file changed, 1 insertion(+)
13
14diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
15index b8d19a4..81d4aef 100644
16--- a/src/client/qwaylandwindow.cpp
17+++ b/src/client/qwaylandwindow.cpp
18@@ -390,6 +390,7 @@ void QWaylandWindow::setGeometry_helper(const QRect &rect)
19
20     if (mSubSurfaceWindow) {
21         QMargins m = QPlatformWindow::parent()->frameMargins();
22+        mSubSurfaceWindow->set_position(rect.x() + m.left() | rect.width() << 16, rect.y() + m.top() | rect.height() << 16);
23         mSubSurfaceWindow->set_position(rect.x() + m.left(), rect.y() + m.top());
24
25         QWaylandWindow *parentWindow = mSubSurfaceWindow->parent();
26--
272.20.1
28
29