diff options
| author | David Edmundson <[email protected]> | 2025-06-03 12:52:20 +0300 |
|---|---|---|
| committer | David Edmundson <[email protected]> | 2025-06-27 14:49:22 +0100 |
| commit | 0094c73c3ce255f9c0b51f491caee518aef078df (patch) | |
| tree | 5a8e50b670dbf763afbef57166957dd8d4ee942f /src/gui/kernel | |
| parent | a5722944bea247159f1d105c0bf767b9bf19cf21 (diff) | |
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 <[email protected]>
Diffstat (limited to 'src/gui/kernel')
| -rw-r--r-- | src/gui/kernel/qplatformwindow_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<T *>(&anyRole); return role ? *role : nullptr; } + virtual void setSessionRestoreId(const QString &role) = 0; Q_SIGNALS: void surfaceCreated(); void surfaceDestroyed(); |
