From 8013b643c2e1acbad4963db8e00e159931316721 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 12 Mar 2024 12:49:17 +0100 Subject: [PATCH] QWaylandWindow: Add surfaceRoleCreated/Destroyed signals There are many APIs in Wayland that require a surface role to be assigned (e.g. XDG Toplevel) before they can be used, where the surfaceCreated() signal is too early. Change-Id: I400a6279f21554267259f812a2efb33451b4709b Reviewed-by: Vlad Zahorodnii --- src/gui/kernel/qplatformwindow_p.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/kernel/qplatformwindow_p.h b/src/gui/kernel/qplatformwindow_p.h index e24f983975..2bbdfd5bf9 100644 --- a/src/gui/kernel/qplatformwindow_p.h +++ b/src/gui/kernel/qplatformwindow_p.h @@ -126,6 +126,8 @@ public: Q_SIGNALS: void surfaceCreated(); void surfaceDestroyed(); + void surfaceRoleCreated(); + void surfaceRoleDestroyed(); void xdgActivationTokenCreated(const QString &token); protected: