2020-03-15 15:19:28 +00:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
|
|
*/
|
2021-03-10 16:08:30 +00:00
|
|
|
#pragma once
|
2015-06-12 01:05:14 +00:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
2020-04-29 14:56:38 +00:00
|
|
|
#include <KWaylandServer/kwaylandserver_export.h>
|
2015-06-12 01:05:14 +00:00
|
|
|
|
|
|
|
class QSize;
|
|
|
|
|
2020-04-29 14:56:38 +00:00
|
|
|
namespace KWaylandServer
|
2015-06-12 01:05:14 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
class Display;
|
2015-06-15 19:42:38 +00:00
|
|
|
class PlasmaWindowInterface;
|
2015-10-30 11:26:12 +00:00
|
|
|
class SurfaceInterface;
|
Add KWayland virtual desktop protocol
Summary:
Implement the virtual desktop protocol discussed in
T4457 xml protocol, client and server part.
The PlasmaVirtualDesktopManagement interface manages the desktops
instantiation and layout, each desktop is a PlasmaVirtualDesktop
instance which contains unique id, name and position.
PlasmaWindow has new events: plasmaVirtualDesktopEntered
and plasmaVirtualDesktopLeft when a window enters or leaves a desktop,
and desktops as the list of desktops is in. A window can be on
any subset of desktops, if the list is empty, it's considered on all desktops.
Test Plan: Autotest
Reviewers: #kwin, #plasma, graesslin, hein, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, zzag, bshah, romangg, kde-frameworks-devel
Tags: #frameworks
Maniphest Tasks: T4457
Differential Revision: https://phabricator.kde.org/D12820
2018-07-19 16:36:32 +00:00
|
|
|
class PlasmaVirtualDesktopManagementInterface;
|
2020-09-28 11:40:51 +00:00
|
|
|
class PlasmaWindowManagementInterfacePrivate;
|
|
|
|
class PlasmaWindowInterfacePrivate;
|
2015-06-12 01:05:14 +00:00
|
|
|
|
2017-05-26 16:33:25 +00:00
|
|
|
/**
|
|
|
|
* @todo Add documentation
|
|
|
|
*/
|
2020-09-28 11:40:51 +00:00
|
|
|
class KWAYLANDSERVER_EXPORT PlasmaWindowManagementInterface : public QObject
|
2015-06-12 01:05:14 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2020-12-09 20:13:19 +00:00
|
|
|
|
2015-06-12 01:05:14 +00:00
|
|
|
public:
|
2020-12-09 20:13:19 +00:00
|
|
|
explicit PlasmaWindowManagementInterface(Display *display, QObject *parent = nullptr);
|
2020-09-28 11:40:51 +00:00
|
|
|
~PlasmaWindowManagementInterface() override;
|
2015-06-12 01:05:14 +00:00
|
|
|
enum class ShowingDesktopState {
|
|
|
|
Disabled,
|
|
|
|
Enabled
|
|
|
|
};
|
|
|
|
void setShowingDesktopState(ShowingDesktopState state);
|
|
|
|
|
2020-05-20 11:02:48 +00:00
|
|
|
PlasmaWindowInterface *createWindow(QObject *parent, const QUuid &uuid);
|
2015-06-15 19:42:38 +00:00
|
|
|
QList<PlasmaWindowInterface*> windows() const;
|
|
|
|
|
Add KWayland virtual desktop protocol
Summary:
Implement the virtual desktop protocol discussed in
T4457 xml protocol, client and server part.
The PlasmaVirtualDesktopManagement interface manages the desktops
instantiation and layout, each desktop is a PlasmaVirtualDesktop
instance which contains unique id, name and position.
PlasmaWindow has new events: plasmaVirtualDesktopEntered
and plasmaVirtualDesktopLeft when a window enters or leaves a desktop,
and desktops as the list of desktops is in. A window can be on
any subset of desktops, if the list is empty, it's considered on all desktops.
Test Plan: Autotest
Reviewers: #kwin, #plasma, graesslin, hein, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, zzag, bshah, romangg, kde-frameworks-devel
Tags: #frameworks
Maniphest Tasks: T4457
Differential Revision: https://phabricator.kde.org/D12820
2018-07-19 16:36:32 +00:00
|
|
|
/**
|
|
|
|
* Associate a PlasmaVirtualDesktopManagementInterface to this window management.
|
|
|
|
* It's necessary to associate one in orderto use the plasma virtual desktop features
|
|
|
|
* of PlasmaWindowInterface, as a window must know what are the deasktops available
|
|
|
|
*/
|
|
|
|
void setPlasmaVirtualDesktopManagementInterface(PlasmaVirtualDesktopManagementInterface *manager);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @returns the PlasmaVirtualDesktopManagementInterface associated to this PlasmaWindowManagementInterface
|
|
|
|
*/
|
|
|
|
PlasmaVirtualDesktopManagementInterface *plasmaVirtualDesktopManagementInterface() const;
|
|
|
|
|
2020-04-21 14:50:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Associate stacking order to this window management
|
|
|
|
*/
|
|
|
|
void setStackingOrder(const QVector<quint32> &stackingOrder);
|
|
|
|
|
2015-06-12 01:05:14 +00:00
|
|
|
Q_SIGNALS:
|
|
|
|
void requestChangeShowingDesktop(ShowingDesktopState requestedState);
|
|
|
|
|
|
|
|
private:
|
2020-09-28 11:40:51 +00:00
|
|
|
QScopedPointer<PlasmaWindowManagementInterfacePrivate> d;
|
2015-06-12 01:05:14 +00:00
|
|
|
};
|
|
|
|
|
2017-05-26 16:33:25 +00:00
|
|
|
/**
|
|
|
|
* @todo Add documentation
|
|
|
|
*/
|
2015-06-15 19:42:38 +00:00
|
|
|
class KWAYLANDSERVER_EXPORT PlasmaWindowInterface : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2020-09-28 11:40:51 +00:00
|
|
|
~PlasmaWindowInterface() override;
|
2015-06-15 19:42:38 +00:00
|
|
|
|
|
|
|
void setTitle(const QString &title);
|
|
|
|
void setAppId(const QString &appId);
|
2017-05-12 17:42:01 +00:00
|
|
|
void setPid(quint32 pid);
|
2019-10-15 12:59:08 +00:00
|
|
|
#if KWAYLANDSERVER_ENABLE_DEPRECATED_SINCE(5, 52)
|
Add KWayland virtual desktop protocol
Summary:
Implement the virtual desktop protocol discussed in
T4457 xml protocol, client and server part.
The PlasmaVirtualDesktopManagement interface manages the desktops
instantiation and layout, each desktop is a PlasmaVirtualDesktop
instance which contains unique id, name and position.
PlasmaWindow has new events: plasmaVirtualDesktopEntered
and plasmaVirtualDesktopLeft when a window enters or leaves a desktop,
and desktops as the list of desktops is in. A window can be on
any subset of desktops, if the list is empty, it's considered on all desktops.
Test Plan: Autotest
Reviewers: #kwin, #plasma, graesslin, hein, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, zzag, bshah, romangg, kde-frameworks-devel
Tags: #frameworks
Maniphest Tasks: T4457
Differential Revision: https://phabricator.kde.org/D12820
2018-07-19 16:36:32 +00:00
|
|
|
/**
|
2019-10-15 12:59:08 +00:00
|
|
|
* @deprecated Since 5.52, use addPlasmaVirtualDesktop and removePlasmaVirtualDesktop
|
Add KWayland virtual desktop protocol
Summary:
Implement the virtual desktop protocol discussed in
T4457 xml protocol, client and server part.
The PlasmaVirtualDesktopManagement interface manages the desktops
instantiation and layout, each desktop is a PlasmaVirtualDesktop
instance which contains unique id, name and position.
PlasmaWindow has new events: plasmaVirtualDesktopEntered
and plasmaVirtualDesktopLeft when a window enters or leaves a desktop,
and desktops as the list of desktops is in. A window can be on
any subset of desktops, if the list is empty, it's considered on all desktops.
Test Plan: Autotest
Reviewers: #kwin, #plasma, graesslin, hein, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, zzag, bshah, romangg, kde-frameworks-devel
Tags: #frameworks
Maniphest Tasks: T4457
Differential Revision: https://phabricator.kde.org/D12820
2018-07-19 16:36:32 +00:00
|
|
|
*/
|
2019-10-15 12:59:08 +00:00
|
|
|
KWAYLANDSERVER_DEPRECATED_VERSION(5, 52, "Use PlasmaWindowManagementInterface::addPlasmaVirtualDesktop(const QString&) and PlasmaWindowManagementInterface::removePlasmaVirtualDesktop(const QString&)")
|
|
|
|
void setVirtualDesktop(quint32 desktop);
|
Add KWayland virtual desktop protocol
Summary:
Implement the virtual desktop protocol discussed in
T4457 xml protocol, client and server part.
The PlasmaVirtualDesktopManagement interface manages the desktops
instantiation and layout, each desktop is a PlasmaVirtualDesktop
instance which contains unique id, name and position.
PlasmaWindow has new events: plasmaVirtualDesktopEntered
and plasmaVirtualDesktopLeft when a window enters or leaves a desktop,
and desktops as the list of desktops is in. A window can be on
any subset of desktops, if the list is empty, it's considered on all desktops.
Test Plan: Autotest
Reviewers: #kwin, #plasma, graesslin, hein, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, zzag, bshah, romangg, kde-frameworks-devel
Tags: #frameworks
Maniphest Tasks: T4457
Differential Revision: https://phabricator.kde.org/D12820
2018-07-19 16:36:32 +00:00
|
|
|
#endif
|
2015-06-18 19:13:58 +00:00
|
|
|
void setActive(bool set);
|
|
|
|
void setMinimized(bool set);
|
|
|
|
void setMaximized(bool set);
|
|
|
|
void setFullscreen(bool set);
|
|
|
|
void setKeepAbove(bool set);
|
|
|
|
void setKeepBelow(bool set);
|
|
|
|
void setOnAllDesktops(bool set);
|
|
|
|
void setDemandsAttention(bool set);
|
|
|
|
void setCloseable(bool set);
|
|
|
|
void setMinimizeable(bool set);
|
|
|
|
void setMaximizeable(bool set);
|
|
|
|
void setFullscreenable(bool set);
|
2015-09-29 18:23:18 +00:00
|
|
|
void setSkipTaskbar(bool skip);
|
2018-05-22 12:11:22 +00:00
|
|
|
void setSkipSwitcher(bool skip);
|
2019-10-15 12:59:08 +00:00
|
|
|
#if KWAYLANDSERVER_ENABLE_DEPRECATED_SINCE(5, 28)
|
2016-10-13 11:39:27 +00:00
|
|
|
/**
|
|
|
|
* @deprecated since 5.28 use setIcon
|
|
|
|
**/
|
2019-10-15 12:59:08 +00:00
|
|
|
KWAYLANDSERVER_DEPRECATED_VERSION(5, 28, "Use PlasmaWindowManagementInterface::setIcon(const QIcon&)")
|
|
|
|
void setThemedIconName(const QString &iconName);
|
2016-10-13 11:39:27 +00:00
|
|
|
#endif
|
2016-04-19 09:40:57 +00:00
|
|
|
void setShadeable(bool set);
|
2016-04-15 11:34:53 +00:00
|
|
|
void setShaded(bool set);
|
2016-04-17 09:19:39 +00:00
|
|
|
void setMovable(bool set);
|
|
|
|
void setResizable(bool set);
|
2016-04-19 16:13:08 +00:00
|
|
|
/**
|
Add KWayland virtual desktop protocol
Summary:
Implement the virtual desktop protocol discussed in
T4457 xml protocol, client and server part.
The PlasmaVirtualDesktopManagement interface manages the desktops
instantiation and layout, each desktop is a PlasmaVirtualDesktop
instance which contains unique id, name and position.
PlasmaWindow has new events: plasmaVirtualDesktopEntered
and plasmaVirtualDesktopLeft when a window enters or leaves a desktop,
and desktops as the list of desktops is in. A window can be on
any subset of desktops, if the list is empty, it's considered on all desktops.
Test Plan: Autotest
Reviewers: #kwin, #plasma, graesslin, hein, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, zzag, bshah, romangg, kde-frameworks-devel
Tags: #frameworks
Maniphest Tasks: T4457
Differential Revision: https://phabricator.kde.org/D12820
2018-07-19 16:36:32 +00:00
|
|
|
* FIXME: still relevant with new desktops?
|
2016-04-19 16:13:08 +00:00
|
|
|
*/
|
|
|
|
void setVirtualDesktopChangeable(bool set);
|
2015-06-15 19:42:38 +00:00
|
|
|
|
2016-05-12 05:40:27 +00:00
|
|
|
/**
|
|
|
|
* This method removes the Window and the Client is supposed to release the resource
|
2021-02-04 13:10:18 +00:00
|
|
|
* bound for this Window.
|
2016-05-12 05:40:27 +00:00
|
|
|
*
|
2021-02-04 13:10:18 +00:00
|
|
|
* No more events should be sent afterwards.
|
2016-05-12 05:40:27 +00:00
|
|
|
**/
|
2015-06-17 22:10:52 +00:00
|
|
|
void unmap();
|
|
|
|
|
2015-10-30 11:26:12 +00:00
|
|
|
/**
|
|
|
|
* @returns Geometries of the taskbar entries, indicized by the
|
|
|
|
* surface of the panels
|
|
|
|
*/
|
|
|
|
QHash<SurfaceInterface*, QRect> minimizedGeometries() const;
|
|
|
|
|
2016-06-06 13:06:33 +00:00
|
|
|
/**
|
|
|
|
* Sets this PlasmaWindowInterface as a transient window to @p parentWindow.
|
|
|
|
* If @p parentWindow is @c nullptr, the PlasmaWindowInterface is a toplevel
|
|
|
|
* window and does not have a parent window.
|
|
|
|
**/
|
|
|
|
void setParentWindow(PlasmaWindowInterface *parentWindow);
|
|
|
|
|
2016-07-15 11:31:12 +00:00
|
|
|
/**
|
|
|
|
* Sets the window @p geometry of this PlasmaWindow.
|
|
|
|
*
|
|
|
|
* @param geometry The geometry in absolute coordinates
|
|
|
|
**/
|
|
|
|
void setGeometry(const QRect &geometry);
|
|
|
|
|
2016-10-13 11:39:27 +00:00
|
|
|
/**
|
|
|
|
* Set the icon of the PlasmaWindowInterface.
|
|
|
|
*
|
|
|
|
* In case the icon has a themed name, only the name is sent to the client.
|
|
|
|
* Otherwise the client is only informed that there is an icon and the client
|
|
|
|
* can request the icon in an asynchronous way by passing a file descriptor
|
|
|
|
* into which the icon will be serialized.
|
|
|
|
*
|
|
|
|
* @param icon The new icon
|
|
|
|
**/
|
|
|
|
void setIcon(const QIcon &icon);
|
|
|
|
|
Add KWayland virtual desktop protocol
Summary:
Implement the virtual desktop protocol discussed in
T4457 xml protocol, client and server part.
The PlasmaVirtualDesktopManagement interface manages the desktops
instantiation and layout, each desktop is a PlasmaVirtualDesktop
instance which contains unique id, name and position.
PlasmaWindow has new events: plasmaVirtualDesktopEntered
and plasmaVirtualDesktopLeft when a window enters or leaves a desktop,
and desktops as the list of desktops is in. A window can be on
any subset of desktops, if the list is empty, it's considered on all desktops.
Test Plan: Autotest
Reviewers: #kwin, #plasma, graesslin, hein, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, zzag, bshah, romangg, kde-frameworks-devel
Tags: #frameworks
Maniphest Tasks: T4457
Differential Revision: https://phabricator.kde.org/D12820
2018-07-19 16:36:32 +00:00
|
|
|
/**
|
|
|
|
* Adds a new desktop to this window: a window can be on
|
|
|
|
* an arbitrary subset of virtual desktops.
|
|
|
|
* If it's on none it will be considered on all desktops.
|
|
|
|
*/
|
|
|
|
void addPlasmaVirtualDesktop(const QString &id);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Removes a visrtual desktop from a window
|
|
|
|
*/
|
|
|
|
void removePlasmaVirtualDesktop(const QString &id);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The ids of all the desktops currently associated with this window.
|
|
|
|
* When a desktop is deleted it will be automatically removed from this list
|
|
|
|
*/
|
|
|
|
QStringList plasmaVirtualDesktops() const;
|
|
|
|
|
2020-02-20 02:20:51 +00:00
|
|
|
/**
|
|
|
|
* Set the application menu D-BUS service name and object path for the window.
|
|
|
|
*/
|
|
|
|
void setApplicationMenuPaths(const QString &serviceName, const QString &objectPath);
|
|
|
|
|
2020-04-21 14:50:51 +00:00
|
|
|
/**
|
|
|
|
* Return the window internal id
|
|
|
|
*/
|
|
|
|
quint32 internalId() const;
|
|
|
|
|
2020-05-20 11:02:48 +00:00
|
|
|
/**
|
|
|
|
* @return a unique string that identifies this window
|
|
|
|
*/
|
|
|
|
QByteArray uuid() const;
|
|
|
|
|
2015-06-18 23:43:58 +00:00
|
|
|
Q_SIGNALS:
|
|
|
|
void closeRequested();
|
2016-04-17 09:19:39 +00:00
|
|
|
void moveRequested();
|
|
|
|
void resizeRequested();
|
2019-10-15 12:59:08 +00:00
|
|
|
#if KWAYLANDSERVER_ENABLE_DEPRECATED_SINCE(5, 52)
|
Add KWayland virtual desktop protocol
Summary:
Implement the virtual desktop protocol discussed in
T4457 xml protocol, client and server part.
The PlasmaVirtualDesktopManagement interface manages the desktops
instantiation and layout, each desktop is a PlasmaVirtualDesktop
instance which contains unique id, name and position.
PlasmaWindow has new events: plasmaVirtualDesktopEntered
and plasmaVirtualDesktopLeft when a window enters or leaves a desktop,
and desktops as the list of desktops is in. A window can be on
any subset of desktops, if the list is empty, it's considered on all desktops.
Test Plan: Autotest
Reviewers: #kwin, #plasma, graesslin, hein, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, zzag, bshah, romangg, kde-frameworks-devel
Tags: #frameworks
Maniphest Tasks: T4457
Differential Revision: https://phabricator.kde.org/D12820
2018-07-19 16:36:32 +00:00
|
|
|
/**
|
2019-10-15 12:59:08 +00:00
|
|
|
* @deprecated Since 5.52, use enterPlasmaVirtualDesktopRequested and leavePlasmaVirtualDesktopRequested instead
|
Add KWayland virtual desktop protocol
Summary:
Implement the virtual desktop protocol discussed in
T4457 xml protocol, client and server part.
The PlasmaVirtualDesktopManagement interface manages the desktops
instantiation and layout, each desktop is a PlasmaVirtualDesktop
instance which contains unique id, name and position.
PlasmaWindow has new events: plasmaVirtualDesktopEntered
and plasmaVirtualDesktopLeft when a window enters or leaves a desktop,
and desktops as the list of desktops is in. A window can be on
any subset of desktops, if the list is empty, it's considered on all desktops.
Test Plan: Autotest
Reviewers: #kwin, #plasma, graesslin, hein, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, zzag, bshah, romangg, kde-frameworks-devel
Tags: #frameworks
Maniphest Tasks: T4457
Differential Revision: https://phabricator.kde.org/D12820
2018-07-19 16:36:32 +00:00
|
|
|
*/
|
2019-10-15 12:59:08 +00:00
|
|
|
KWAYLANDSERVER_DEPRECATED_VERSION(5, 52, "Use PlasmaWindowManagementInterface::enterPlasmaVirtualDesktopRequested(const QString&) and PlasmaWindowManagementInterface::leavePlasmaVirtualDesktopRequested(const QString&)")
|
|
|
|
void virtualDesktopRequested(quint32 desktop);
|
Add KWayland virtual desktop protocol
Summary:
Implement the virtual desktop protocol discussed in
T4457 xml protocol, client and server part.
The PlasmaVirtualDesktopManagement interface manages the desktops
instantiation and layout, each desktop is a PlasmaVirtualDesktop
instance which contains unique id, name and position.
PlasmaWindow has new events: plasmaVirtualDesktopEntered
and plasmaVirtualDesktopLeft when a window enters or leaves a desktop,
and desktops as the list of desktops is in. A window can be on
any subset of desktops, if the list is empty, it's considered on all desktops.
Test Plan: Autotest
Reviewers: #kwin, #plasma, graesslin, hein, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, zzag, bshah, romangg, kde-frameworks-devel
Tags: #frameworks
Maniphest Tasks: T4457
Differential Revision: https://phabricator.kde.org/D12820
2018-07-19 16:36:32 +00:00
|
|
|
#endif
|
2015-06-19 02:34:50 +00:00
|
|
|
void activeRequested(bool set);
|
|
|
|
void minimizedRequested(bool set);
|
|
|
|
void maximizedRequested(bool set);
|
|
|
|
void fullscreenRequested(bool set);
|
|
|
|
void keepAboveRequested(bool set);
|
|
|
|
void keepBelowRequested(bool set);
|
|
|
|
void demandsAttentionRequested(bool set);
|
|
|
|
void closeableRequested(bool set);
|
|
|
|
void minimizeableRequested(bool set);
|
|
|
|
void maximizeableRequested(bool set);
|
|
|
|
void fullscreenableRequested(bool set);
|
2015-09-29 18:23:18 +00:00
|
|
|
void skipTaskbarRequested(bool set);
|
2018-05-22 12:11:22 +00:00
|
|
|
void skipSwitcherRequested(bool set);
|
2015-10-30 11:26:12 +00:00
|
|
|
QRect minimizedGeometriesChanged();
|
2016-04-19 09:40:57 +00:00
|
|
|
void shadeableRequested(bool set);
|
2016-04-15 11:34:53 +00:00
|
|
|
void shadedRequested(bool set);
|
2016-04-17 09:19:39 +00:00
|
|
|
void movableRequested(bool set);
|
|
|
|
void resizableRequested(bool set);
|
2016-04-19 16:13:08 +00:00
|
|
|
/**
|
Add KWayland virtual desktop protocol
Summary:
Implement the virtual desktop protocol discussed in
T4457 xml protocol, client and server part.
The PlasmaVirtualDesktopManagement interface manages the desktops
instantiation and layout, each desktop is a PlasmaVirtualDesktop
instance which contains unique id, name and position.
PlasmaWindow has new events: plasmaVirtualDesktopEntered
and plasmaVirtualDesktopLeft when a window enters or leaves a desktop,
and desktops as the list of desktops is in. A window can be on
any subset of desktops, if the list is empty, it's considered on all desktops.
Test Plan: Autotest
Reviewers: #kwin, #plasma, graesslin, hein, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, zzag, bshah, romangg, kde-frameworks-devel
Tags: #frameworks
Maniphest Tasks: T4457
Differential Revision: https://phabricator.kde.org/D12820
2018-07-19 16:36:32 +00:00
|
|
|
* FIXME: still relevant with new virtual desktops?
|
2016-04-19 16:13:08 +00:00
|
|
|
*/
|
|
|
|
void virtualDesktopChangeableRequested(bool set);
|
2015-06-18 23:43:58 +00:00
|
|
|
|
Add KWayland virtual desktop protocol
Summary:
Implement the virtual desktop protocol discussed in
T4457 xml protocol, client and server part.
The PlasmaVirtualDesktopManagement interface manages the desktops
instantiation and layout, each desktop is a PlasmaVirtualDesktop
instance which contains unique id, name and position.
PlasmaWindow has new events: plasmaVirtualDesktopEntered
and plasmaVirtualDesktopLeft when a window enters or leaves a desktop,
and desktops as the list of desktops is in. A window can be on
any subset of desktops, if the list is empty, it's considered on all desktops.
Test Plan: Autotest
Reviewers: #kwin, #plasma, graesslin, hein, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: davidedmundson, zzag, bshah, romangg, kde-frameworks-devel
Tags: #frameworks
Maniphest Tasks: T4457
Differential Revision: https://phabricator.kde.org/D12820
2018-07-19 16:36:32 +00:00
|
|
|
/**
|
|
|
|
* Emitted when the client wishes this window to enter in a new virtual desktop.
|
|
|
|
* The server will decide whether to consent this request
|
|
|
|
*/
|
|
|
|
void enterPlasmaVirtualDesktopRequested(const QString &desktop);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Emitted when the client wishes this window to enter in
|
|
|
|
* a new virtual desktop to be created for it.
|
|
|
|
* The server will decide whether to consent this request
|
|
|
|
*/
|
|
|
|
void enterNewPlasmaVirtualDesktopRequested();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Emitted when the client wishes to remove this window from a virtual desktop.
|
|
|
|
* The server will decide whether to consent this request
|
|
|
|
*/
|
|
|
|
void leavePlasmaVirtualDesktopRequested(const QString &desktop);
|
|
|
|
|
2015-06-15 19:42:38 +00:00
|
|
|
private:
|
|
|
|
friend class PlasmaWindowManagementInterface;
|
2020-09-28 11:40:51 +00:00
|
|
|
friend class PlasmaWindowInterfacePrivate;
|
|
|
|
friend class PlasmaWindowManagementInterfacePrivate;
|
2015-06-15 19:42:38 +00:00
|
|
|
explicit PlasmaWindowInterface(PlasmaWindowManagementInterface *wm, QObject *parent);
|
|
|
|
|
2020-09-28 11:40:51 +00:00
|
|
|
QScopedPointer<PlasmaWindowInterfacePrivate> d;
|
2015-06-15 19:42:38 +00:00
|
|
|
};
|
|
|
|
|
2015-06-12 01:05:14 +00:00
|
|
|
}
|
|
|
|
|
2020-04-29 14:56:38 +00:00
|
|
|
Q_DECLARE_METATYPE(KWaylandServer::PlasmaWindowManagementInterface::ShowingDesktopState)
|