diff options
| author | David Edmundson <davidedmundson@kde.org> | 2025-06-03 12:52:20 +0300 |
|---|---|---|
| committer | David Edmundson <davidedmundson@kde.org> | 2025-06-27 14:49:22 +0100 |
| commit | 0094c73c3ce255f9c0b51f491caee518aef078df (patch) | |
| tree | 5a8e50b670dbf763afbef57166957dd8d4ee942f /src/plugins/platforms/wayland/qwaylandwindow.cpp | |
| 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 <vlad.zahorodnii@kde.org>
Diffstat (limited to 'src/plugins/platforms/wayland/qwaylandwindow.cpp')
| -rw-r--r-- | src/plugins/platforms/wayland/qwaylandwindow.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandwindow.cpp b/src/plugins/platforms/wayland/qwaylandwindow.cpp index 73d90b6c321..cfbc392c319 100644 --- a/src/plugins/platforms/wayland/qwaylandwindow.cpp +++ b/src/plugins/platforms/wayland/qwaylandwindow.cpp @@ -1,6 +1,7 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only +#include "qwaylandsessionmanager_p.h" #include "qwaylandwindow_p.h" #include "qwaylandbuffer_p.h" @@ -1934,6 +1935,16 @@ QSurfaceFormat QWaylandWindow::format() const return mSurfaceFormat; } +void QWaylandWindow::setSessionRestoreId(const QString &role) +{ + mSessionRestoreId = role; +} + +QString QWaylandWindow::sessionRestoreId() const +{ + return mSessionRestoreId; +} + } QT_END_NAMESPACE |
