summaryrefslogtreecommitdiff
path: root/src/window-lib/waylandcompositor.h
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2021-02-05 13:19:13 +0100
committerRobert Griebl <robert.griebl@qt.io>2021-04-23 14:34:28 +0000
commit364763749f40feb082861cc83fd7de9c3b02677f (patch)
tree001f84278a80de5d3c0ccdc8a06e919c2917c2de /src/window-lib/waylandcompositor.h
parent0633c2a16fc47a9e38623517f0b5dd38c4ecc8e9 (diff)
downloadqtapplicationmanager-364763749f40feb082861cc83fd7de9c3b02677f.tar.gz
Expose the Wayland XDG surface object to the system ui via WindowObject properties
Change-Id: I589ed34c234dab5726c325c2fd30cd18c468f2e1 Pick-to: 5.15 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
Diffstat (limited to 'src/window-lib/waylandcompositor.h')
-rw-r--r--src/window-lib/waylandcompositor.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/window-lib/waylandcompositor.h b/src/window-lib/waylandcompositor.h
index fdb8add9..c3398437 100644
--- a/src/window-lib/waylandcompositor.h
+++ b/src/window-lib/waylandcompositor.h
@@ -87,7 +87,9 @@ class WindowSurface : public QWaylandQuickSurface
Q_OBJECT
public:
WindowSurface(WaylandCompositor *comp, QWaylandClient *client, uint id, int version);
+ QWaylandSurface *surface() const;
QWaylandWlShellSurface *shellSurface() const;
+ QWaylandXdgSurface *xdgSurface() const;
WaylandCompositor *compositor() const;
QString applicationId() const;
@@ -95,11 +97,6 @@ public:
QRect popupGeometry() const;
void sendResizing(const QSize &size);
-private:
- void setShellSurface(QWaylandWlShellSurface *ss);
-
-public:
- QWaylandSurface *surface() const;
qint64 processId() const;
QWindow *outputWindow() const;
@@ -109,6 +106,10 @@ public:
signals:
void pong();
void popupGeometryChanged();
+ void xdgSurfaceChanged();
+
+private:
+ void setShellSurface(QWaylandWlShellSurface *ss);
private:
QWaylandSurface *m_surface;