From 0094c73c3ce255f9c0b51f491caee518aef078df Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Tue, 3 Jun 2025 12:52:20 +0300 Subject: wayland: Add xx-session-management-v1 support This is powered by the xx-session-manager which is tagged as experiemntal. This is guarded by an env variable. Application level session IDs are exposed via QSessionManager. The public API for windows is exposed via the existing QSessionManager and QWidget::setWindowRole. As it's not widely supported the documentation in QWidget is left untouched for now. [ChangeLog][Third-Party Code] New protocol synced from wayland-protocols Change-Id: Ibfbef86c6e75f8b95433cbba69ca10a5abea9e21 Reviewed-by: Vlad Zahorodnii --- src/gui/kernel/qplatformwindow_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/kernel') diff --git a/src/gui/kernel/qplatformwindow_p.h b/src/gui/kernel/qplatformwindow_p.h index 5ee14c90e8a..c446ac760c0 100644 --- a/src/gui/kernel/qplatformwindow_p.h +++ b/src/gui/kernel/qplatformwindow_p.h @@ -135,6 +135,7 @@ public: auto role = std::any_cast(&anyRole); return role ? *role : nullptr; } + virtual void setSessionRestoreId(const QString &role) = 0; Q_SIGNALS: void surfaceCreated(); void surfaceDestroyed(); -- cgit v1.2.3