2020-08-02 22:22:19 +00:00
|
|
|
/*
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
2015-02-09 12:28:37 +00:00
|
|
|
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org>
|
2015-02-09 12:28:37 +00:00
|
|
|
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2015-02-09 12:28:37 +00:00
|
|
|
#ifndef KWIN_WAYLAND_SERVER_H
|
|
|
|
#define KWIN_WAYLAND_SERVER_H
|
|
|
|
|
|
|
|
#include <kwinglobals.h>
|
2019-06-21 14:02:50 +00:00
|
|
|
#include "keyboard_input.h"
|
2015-02-09 12:28:37 +00:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
2015-08-17 07:42:12 +00:00
|
|
|
class QThread;
|
2016-06-20 09:21:16 +00:00
|
|
|
class QProcess;
|
2015-05-18 09:23:45 +00:00
|
|
|
class QWindow;
|
|
|
|
|
2015-02-09 12:28:37 +00:00
|
|
|
namespace KWayland
|
|
|
|
{
|
2015-04-02 12:37:23 +00:00
|
|
|
namespace Client
|
|
|
|
{
|
|
|
|
class ConnectionThread;
|
2015-08-14 07:28:46 +00:00
|
|
|
class Registry;
|
2018-08-22 12:56:48 +00:00
|
|
|
class Compositor;
|
2018-08-21 20:06:42 +00:00
|
|
|
class Seat;
|
|
|
|
class DataDeviceManager;
|
2015-05-18 09:23:45 +00:00
|
|
|
class Surface;
|
2015-04-02 12:37:23 +00:00
|
|
|
}
|
2020-04-29 15:18:41 +00:00
|
|
|
}
|
|
|
|
namespace KWaylandServer
|
2015-02-09 12:28:37 +00:00
|
|
|
{
|
2017-12-22 14:22:24 +00:00
|
|
|
class AppMenuManagerInterface;
|
2015-02-25 13:15:32 +00:00
|
|
|
class ClientConnection;
|
2015-02-09 12:28:37 +00:00
|
|
|
class CompositorInterface;
|
|
|
|
class Display;
|
2016-06-20 09:21:16 +00:00
|
|
|
class DataDeviceInterface;
|
2017-12-29 17:29:19 +00:00
|
|
|
class IdleInterface;
|
2020-07-11 16:40:28 +00:00
|
|
|
class InputMethodV1Interface;
|
2015-02-09 12:28:37 +00:00
|
|
|
class SeatInterface;
|
2018-08-21 20:06:42 +00:00
|
|
|
class DataDeviceManagerInterface;
|
2015-12-17 10:14:54 +00:00
|
|
|
class ServerSideDecorationManagerInterface;
|
2018-01-04 18:32:18 +00:00
|
|
|
class ServerSideDecorationPaletteManagerInterface;
|
2015-05-21 07:59:45 +00:00
|
|
|
class SurfaceInterface;
|
2015-02-09 12:28:37 +00:00
|
|
|
class OutputInterface;
|
2015-06-09 17:10:56 +00:00
|
|
|
class PlasmaShellInterface;
|
2017-02-07 18:18:18 +00:00
|
|
|
class PlasmaShellSurfaceInterface;
|
[wayland] Use the new plasma virtual desktop protocol
Summary:
implement virtual desktop support for Wayland.
use the new virtual desktop protocol from D12820
The VirtualDesktopManager class needed some big change in order
to accomodate it, which is where most changes are.
Other than that, it's mostly connections to wire up
VirtualDesktopsManager and VirtualDesktopsManagement(the wayland protocol impl)
Depends on D12820
Other notable detail, is the client visibility updated to reflect the presence
of the client in the plasmavirtualdesktop.
(and the unSetDesktop concept)
Test Plan: used a bit a plasma session together with D12820, D13748 and D13746
Reviewers: #plasma, #kwin, graesslin, davidedmundson
Reviewed By: #plasma, #kwin, davidedmundson
Subscribers: hein, zzag, davidedmundson, kwin
Tags: #kwin
Maniphest Tasks: T4457
Differential Revision: https://phabricator.kde.org/D13887
2018-10-29 22:29:15 +00:00
|
|
|
class PlasmaVirtualDesktopManagementInterface;
|
2015-06-12 23:48:11 +00:00
|
|
|
class PlasmaWindowManagementInterface;
|
2016-03-10 18:57:07 +00:00
|
|
|
class OutputManagementInterface;
|
|
|
|
class OutputConfigurationInterface;
|
2020-07-28 11:35:08 +00:00
|
|
|
class XdgForeignV2Interface;
|
2020-08-20 14:53:10 +00:00
|
|
|
class XdgOutputManagerV1Interface;
|
2019-06-21 14:02:50 +00:00
|
|
|
class KeyStateInterface;
|
2019-10-26 03:40:01 +00:00
|
|
|
class LinuxDmabufUnstableV1Interface;
|
|
|
|
class LinuxDmabufUnstableV1Buffer;
|
2020-11-04 17:17:04 +00:00
|
|
|
class TabletManagerV2Interface;
|
2020-05-29 09:18:47 +00:00
|
|
|
class KeyboardShortcutsInhibitManagerV1Interface;
|
2020-02-17 18:39:17 +00:00
|
|
|
class XdgDecorationManagerV1Interface;
|
2015-02-09 12:28:37 +00:00
|
|
|
}
|
2020-04-29 15:18:41 +00:00
|
|
|
|
2015-02-09 12:28:37 +00:00
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
|
2015-06-16 04:50:22 +00:00
|
|
|
class AbstractClient;
|
2016-06-07 09:43:56 +00:00
|
|
|
class Toplevel;
|
2020-05-07 14:29:41 +00:00
|
|
|
class XdgPopupClient;
|
2020-08-04 01:15:59 +00:00
|
|
|
class XdgSurfaceClient;
|
2020-02-17 18:39:17 +00:00
|
|
|
class XdgToplevelClient;
|
2020-08-07 13:28:49 +00:00
|
|
|
class AbstractWaylandOutput;
|
2015-03-20 13:41:03 +00:00
|
|
|
|
2015-02-09 12:28:37 +00:00
|
|
|
class KWIN_EXPORT WaylandServer : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2020-04-29 08:45:02 +00:00
|
|
|
|
2015-02-09 12:28:37 +00:00
|
|
|
public:
|
2020-03-17 05:48:05 +00:00
|
|
|
enum class InitializationFlag {
|
2015-11-05 13:09:23 +00:00
|
|
|
NoOptions = 0x0,
|
2016-04-25 06:51:33 +00:00
|
|
|
LockScreen = 0x1,
|
2018-12-02 12:09:37 +00:00
|
|
|
NoLockScreenIntegration = 0x2,
|
|
|
|
NoGlobalShortcuts = 0x4
|
2015-11-05 13:09:23 +00:00
|
|
|
};
|
|
|
|
|
2020-03-17 05:48:05 +00:00
|
|
|
Q_DECLARE_FLAGS(InitializationFlags, InitializationFlag)
|
2015-11-05 13:09:23 +00:00
|
|
|
|
Run clang-tidy with modernize-use-override check
Summary:
Currently code base of kwin can be viewed as two pieces. One is very
ancient, and the other one is more modern, which uses new C++ features.
The main problem with the ancient code is that it was written before
C++11 era. So, no override or final keywords, lambdas, etc.
Quite recently, KDE compiler settings were changed to show a warning if
a virtual method has missing override keyword. As you might have already
guessed, this fired back at us because of that ancient code. We had
about 500 new compiler warnings.
A "solution" was proposed to that problem - disable -Wno-suggest-override
and the other similar warning for clang. It's hard to call a solution
because those warnings are disabled not only for the old code, but also
for new. This is not what we want!
The main argument for not actually fixing the problem was that git
history will be screwed as well because of human factor. While good git
history is a very important thing, we should not go crazy about it and
block every change that somehow alters git history. git blame allows to
specify starting revision for a reason.
The other argument (human factor) can be easily solved by using tools
such as clang-tidy. clang-tidy is a clang-based linter for C++. It can
be used for various things, e.g. fixing coding style(e.g. add missing
braces to if statements, readability-braces-around-statements check),
or in our case add missing override keywords.
Test Plan: Compiles.
Reviewers: #kwin, davidedmundson
Reviewed By: #kwin, davidedmundson
Subscribers: davidedmundson, apol, romangg, kwin
Tags: #kwin
Differential Revision: https://phabricator.kde.org/D22371
2019-07-22 16:52:26 +00:00
|
|
|
~WaylandServer() override;
|
2020-11-17 18:09:28 +00:00
|
|
|
bool init(const QString &socketName, InitializationFlags flags = InitializationFlag::NoOptions);
|
|
|
|
bool init(InitializationFlags flags = InitializationFlag::NoOptions);
|
|
|
|
|
2020-07-07 09:45:55 +00:00
|
|
|
bool start();
|
2015-11-18 09:29:10 +00:00
|
|
|
void terminateClientConnections();
|
2015-02-09 12:28:37 +00:00
|
|
|
|
2020-05-29 06:48:19 +00:00
|
|
|
KWaylandServer::Display *display() const
|
|
|
|
{
|
2015-02-09 12:28:37 +00:00
|
|
|
return m_display;
|
|
|
|
}
|
2020-05-29 06:48:19 +00:00
|
|
|
KWaylandServer::CompositorInterface *compositor() const
|
|
|
|
{
|
2015-02-09 12:28:37 +00:00
|
|
|
return m_compositor;
|
|
|
|
}
|
2020-05-29 06:48:19 +00:00
|
|
|
KWaylandServer::SeatInterface *seat() const
|
|
|
|
{
|
2015-02-09 12:28:37 +00:00
|
|
|
return m_seat;
|
|
|
|
}
|
2020-11-04 17:17:04 +00:00
|
|
|
KWaylandServer::TabletManagerV2Interface *tabletManagerV2() const
|
2020-03-17 14:21:35 +00:00
|
|
|
{
|
2020-11-04 17:17:04 +00:00
|
|
|
return m_tabletManagerV2;
|
2020-03-17 14:21:35 +00:00
|
|
|
}
|
2020-05-29 06:48:19 +00:00
|
|
|
KWaylandServer::DataDeviceManagerInterface *dataDeviceManager() const
|
|
|
|
{
|
2018-08-21 20:06:42 +00:00
|
|
|
return m_dataDeviceManager;
|
|
|
|
}
|
2020-05-29 06:48:19 +00:00
|
|
|
KWaylandServer::PlasmaVirtualDesktopManagementInterface *virtualDesktopManagement() const
|
|
|
|
{
|
[wayland] Use the new plasma virtual desktop protocol
Summary:
implement virtual desktop support for Wayland.
use the new virtual desktop protocol from D12820
The VirtualDesktopManager class needed some big change in order
to accomodate it, which is where most changes are.
Other than that, it's mostly connections to wire up
VirtualDesktopsManager and VirtualDesktopsManagement(the wayland protocol impl)
Depends on D12820
Other notable detail, is the client visibility updated to reflect the presence
of the client in the plasmavirtualdesktop.
(and the unSetDesktop concept)
Test Plan: used a bit a plasma session together with D12820, D13748 and D13746
Reviewers: #plasma, #kwin, graesslin, davidedmundson
Reviewed By: #plasma, #kwin, davidedmundson
Subscribers: hein, zzag, davidedmundson, kwin
Tags: #kwin
Maniphest Tasks: T4457
Differential Revision: https://phabricator.kde.org/D13887
2018-10-29 22:29:15 +00:00
|
|
|
return m_virtualDesktopManagement;
|
|
|
|
}
|
2020-05-29 06:48:19 +00:00
|
|
|
KWaylandServer::PlasmaWindowManagementInterface *windowManagement() const
|
|
|
|
{
|
2015-07-09 07:10:33 +00:00
|
|
|
return m_windowManagement;
|
|
|
|
}
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::ServerSideDecorationManagerInterface *decorationManager() const {
|
2015-12-17 10:14:54 +00:00
|
|
|
return m_decorationManager;
|
|
|
|
}
|
2020-08-20 14:53:10 +00:00
|
|
|
KWaylandServer::XdgOutputManagerV1Interface *xdgOutputManagerV1() const {
|
|
|
|
return m_xdgOutputManagerV1;
|
2018-05-18 13:16:13 +00:00
|
|
|
}
|
2020-05-29 09:18:47 +00:00
|
|
|
KWaylandServer::KeyboardShortcutsInhibitManagerV1Interface *keyboardShortcutsInhibitManager() const
|
2020-04-29 08:45:02 +00:00
|
|
|
{
|
|
|
|
return m_keyboardShortcutsInhibitManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool isKeyboardShortcutsInhibited() const;
|
|
|
|
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::LinuxDmabufUnstableV1Interface *linuxDmabuf();
|
2018-05-18 13:16:13 +00:00
|
|
|
|
2020-07-11 16:40:28 +00:00
|
|
|
KWaylandServer::InputMethodV1Interface *inputMethod() const {
|
|
|
|
return m_inputMethod;
|
|
|
|
}
|
|
|
|
|
2020-03-04 07:55:26 +00:00
|
|
|
QList<AbstractClient *> clients() const {
|
2015-03-04 08:21:10 +00:00
|
|
|
return m_clients;
|
|
|
|
}
|
2020-03-04 07:55:26 +00:00
|
|
|
void removeClient(AbstractClient *c);
|
2020-04-29 15:18:41 +00:00
|
|
|
AbstractClient *findClient(KWaylandServer::SurfaceInterface *surface) const;
|
2020-02-17 18:39:17 +00:00
|
|
|
XdgToplevelClient *findXdgToplevelClient(KWaylandServer::SurfaceInterface *surface) const;
|
2020-08-04 01:15:59 +00:00
|
|
|
XdgSurfaceClient *findXdgSurfaceClient(KWaylandServer::SurfaceInterface *surface) const;
|
2015-02-09 12:28:37 +00:00
|
|
|
|
2017-10-13 09:32:02 +00:00
|
|
|
/**
|
2019-02-02 18:17:44 +00:00
|
|
|
* @returns a transient parent of a surface imported with the foreign protocol, if any
|
2019-07-29 18:58:33 +00:00
|
|
|
*/
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::SurfaceInterface *findForeignTransientForSurface(KWaylandServer::SurfaceInterface *surface);
|
2017-10-13 09:32:02 +00:00
|
|
|
|
2015-02-25 13:15:32 +00:00
|
|
|
/**
|
|
|
|
* @returns file descriptor for Xwayland to connect to.
|
2019-07-29 18:58:33 +00:00
|
|
|
*/
|
2015-02-25 13:15:32 +00:00
|
|
|
int createXWaylandConnection();
|
2015-11-10 13:21:48 +00:00
|
|
|
void destroyXWaylandConnection();
|
2015-02-25 13:15:32 +00:00
|
|
|
|
2015-06-13 02:06:12 +00:00
|
|
|
/**
|
|
|
|
* @returns file descriptor to the input method server's socket.
|
2019-07-29 18:58:33 +00:00
|
|
|
*/
|
2015-06-13 02:06:12 +00:00
|
|
|
int createInputMethodConnection();
|
2015-11-10 13:38:45 +00:00
|
|
|
void destroyInputMethodConnection();
|
2015-06-13 02:06:12 +00:00
|
|
|
|
2015-11-16 10:19:38 +00:00
|
|
|
/**
|
|
|
|
* @returns true if screen is locked.
|
2019-07-29 18:58:33 +00:00
|
|
|
*/
|
2015-11-16 10:19:38 +00:00
|
|
|
bool isScreenLocked() const;
|
2016-04-25 06:51:33 +00:00
|
|
|
/**
|
|
|
|
* @returns whether integration with KScreenLocker is available.
|
2019-07-29 18:58:33 +00:00
|
|
|
*/
|
2016-04-25 06:51:33 +00:00
|
|
|
bool hasScreenLockerIntegration() const;
|
2015-11-16 10:19:38 +00:00
|
|
|
|
2018-12-02 12:09:37 +00:00
|
|
|
/**
|
|
|
|
* @returns whether any kind of global shortcuts are supported.
|
2019-07-29 18:58:33 +00:00
|
|
|
*/
|
2018-12-02 12:09:37 +00:00
|
|
|
bool hasGlobalShortcutSupport() const;
|
|
|
|
|
2015-04-02 12:37:23 +00:00
|
|
|
void createInternalConnection();
|
2015-06-12 23:48:11 +00:00
|
|
|
void initWorkspace();
|
2015-02-25 13:46:30 +00:00
|
|
|
|
2020-07-20 08:07:08 +00:00
|
|
|
KWaylandServer::ClientConnection *xWaylandConnection() const;
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::ClientConnection *inputMethodConnection() const {
|
2015-06-13 02:06:12 +00:00
|
|
|
return m_inputMethodServerConnection;
|
|
|
|
}
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::ClientConnection *internalConnection() const {
|
2015-04-02 12:37:23 +00:00
|
|
|
return m_internalConnection.server;
|
|
|
|
}
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::ClientConnection *screenLockerClientConnection() const {
|
2015-11-06 14:08:13 +00:00
|
|
|
return m_screenLockerClientConnection;
|
|
|
|
}
|
2018-08-22 12:56:48 +00:00
|
|
|
KWayland::Client::Compositor *internalCompositor() {
|
|
|
|
return m_internalConnection.compositor;
|
|
|
|
}
|
2018-08-21 20:06:42 +00:00
|
|
|
KWayland::Client::Seat *internalSeat() {
|
|
|
|
return m_internalConnection.seat;
|
|
|
|
}
|
|
|
|
KWayland::Client::DataDeviceManager *internalDataDeviceManager() {
|
|
|
|
return m_internalConnection.ddm;
|
|
|
|
}
|
2015-04-02 12:37:23 +00:00
|
|
|
KWayland::Client::ConnectionThread *internalClientConection() {
|
|
|
|
return m_internalConnection.client;
|
|
|
|
}
|
2015-08-14 07:28:46 +00:00
|
|
|
KWayland::Client::Registry *internalClientRegistry() {
|
|
|
|
return m_internalConnection.registry;
|
|
|
|
}
|
2015-05-18 09:33:00 +00:00
|
|
|
void dispatch();
|
2015-04-02 07:49:39 +00:00
|
|
|
|
2016-12-03 13:54:32 +00:00
|
|
|
/**
|
|
|
|
* Struct containing information for a created Wayland connection through a
|
|
|
|
* socketpair.
|
2019-07-29 18:58:33 +00:00
|
|
|
*/
|
2016-12-03 13:54:32 +00:00
|
|
|
struct SocketPairConnection {
|
|
|
|
/**
|
|
|
|
* ServerSide Connection
|
2019-07-29 18:58:33 +00:00
|
|
|
*/
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::ClientConnection *connection = nullptr;
|
2016-12-03 13:54:32 +00:00
|
|
|
/**
|
|
|
|
* client-side file descriptor for the socket
|
2019-07-29 18:58:33 +00:00
|
|
|
*/
|
2016-12-03 13:54:32 +00:00
|
|
|
int fd = -1;
|
|
|
|
};
|
|
|
|
/**
|
|
|
|
* Creates a Wayland connection using a socket pair.
|
2019-07-29 18:58:33 +00:00
|
|
|
*/
|
2016-12-03 13:54:32 +00:00
|
|
|
SocketPairConnection createConnection();
|
|
|
|
|
2017-12-29 17:29:19 +00:00
|
|
|
void simulateUserActivity();
|
2019-06-21 14:02:50 +00:00
|
|
|
void updateKeyState(KWin::Xkb::LEDs leds);
|
2017-12-29 17:29:19 +00:00
|
|
|
|
2020-04-29 15:18:41 +00:00
|
|
|
QSet<KWaylandServer::LinuxDmabufUnstableV1Buffer*> linuxDmabufBuffers() const {
|
2019-10-26 03:40:01 +00:00
|
|
|
return m_linuxDmabufBuffers;
|
|
|
|
}
|
2020-04-29 15:18:41 +00:00
|
|
|
void addLinuxDmabufBuffer(KWaylandServer::LinuxDmabufUnstableV1Buffer *buffer) {
|
2019-10-26 03:40:01 +00:00
|
|
|
m_linuxDmabufBuffers << buffer;
|
|
|
|
}
|
2020-04-29 15:18:41 +00:00
|
|
|
void removeLinuxDmabufBuffer(KWaylandServer::LinuxDmabufUnstableV1Buffer *buffer) {
|
2019-10-26 03:40:01 +00:00
|
|
|
m_linuxDmabufBuffers.remove(buffer);
|
|
|
|
}
|
|
|
|
|
2020-08-07 13:28:49 +00:00
|
|
|
AbstractWaylandOutput *findOutput(KWaylandServer::OutputInterface *output) const;
|
|
|
|
|
2020-11-17 13:26:01 +00:00
|
|
|
/**
|
|
|
|
* Returns the first socket name that can be used to connect to this server.
|
|
|
|
* For a full list, use display()->socketNames()
|
|
|
|
*/
|
|
|
|
QString socketName() const;
|
|
|
|
|
2015-03-04 08:21:10 +00:00
|
|
|
Q_SIGNALS:
|
2020-03-04 07:55:26 +00:00
|
|
|
void shellClientAdded(KWin::AbstractClient *);
|
|
|
|
void shellClientRemoved(KWin::AbstractClient *);
|
2016-02-02 11:00:12 +00:00
|
|
|
void terminatingInternalClientConnection();
|
2016-08-16 07:26:17 +00:00
|
|
|
void initialized();
|
2020-04-29 15:18:41 +00:00
|
|
|
void foreignTransientChanged(KWaylandServer::SurfaceInterface *child);
|
2015-03-04 08:21:10 +00:00
|
|
|
|
2015-02-09 12:28:37 +00:00
|
|
|
private:
|
2020-03-15 21:40:56 +00:00
|
|
|
int createScreenLockerConnection();
|
2016-06-07 09:43:56 +00:00
|
|
|
void shellClientShown(Toplevel *t);
|
2015-11-18 09:29:10 +00:00
|
|
|
void destroyInternalConnection();
|
2017-09-30 14:33:45 +00:00
|
|
|
void initScreenLocker();
|
2020-05-07 14:29:41 +00:00
|
|
|
void registerXdgGenericClient(AbstractClient *client);
|
|
|
|
void registerXdgToplevelClient(XdgToplevelClient *client);
|
|
|
|
void registerXdgPopupClient(XdgPopupClient *client);
|
|
|
|
void registerShellClient(AbstractClient *client);
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::Display *m_display = nullptr;
|
|
|
|
KWaylandServer::CompositorInterface *m_compositor = nullptr;
|
|
|
|
KWaylandServer::SeatInterface *m_seat = nullptr;
|
2020-11-04 17:17:04 +00:00
|
|
|
KWaylandServer::TabletManagerV2Interface *m_tabletManagerV2 = nullptr;
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::DataDeviceManagerInterface *m_dataDeviceManager = nullptr;
|
|
|
|
KWaylandServer::PlasmaShellInterface *m_plasmaShell = nullptr;
|
|
|
|
KWaylandServer::PlasmaWindowManagementInterface *m_windowManagement = nullptr;
|
|
|
|
KWaylandServer::PlasmaVirtualDesktopManagementInterface *m_virtualDesktopManagement = nullptr;
|
|
|
|
KWaylandServer::ServerSideDecorationManagerInterface *m_decorationManager = nullptr;
|
|
|
|
KWaylandServer::OutputManagementInterface *m_outputManagement = nullptr;
|
|
|
|
KWaylandServer::AppMenuManagerInterface *m_appMenuManager = nullptr;
|
|
|
|
KWaylandServer::ServerSideDecorationPaletteManagerInterface *m_paletteManager = nullptr;
|
|
|
|
KWaylandServer::IdleInterface *m_idle = nullptr;
|
2020-08-20 14:53:10 +00:00
|
|
|
KWaylandServer::XdgOutputManagerV1Interface *m_xdgOutputManagerV1 = nullptr;
|
2020-02-17 18:39:17 +00:00
|
|
|
KWaylandServer::XdgDecorationManagerV1Interface *m_xdgDecorationManagerV1 = nullptr;
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::LinuxDmabufUnstableV1Interface *m_linuxDmabuf = nullptr;
|
2020-05-29 09:18:47 +00:00
|
|
|
KWaylandServer::KeyboardShortcutsInhibitManagerV1Interface *m_keyboardShortcutsInhibitManager = nullptr;
|
2020-04-29 15:18:41 +00:00
|
|
|
QSet<KWaylandServer::LinuxDmabufUnstableV1Buffer*> m_linuxDmabufBuffers;
|
2020-07-20 08:07:08 +00:00
|
|
|
QPointer<KWaylandServer::ClientConnection> m_xwaylandConnection;
|
2020-07-11 16:40:28 +00:00
|
|
|
KWaylandServer::InputMethodV1Interface *m_inputMethod = nullptr;
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::ClientConnection *m_inputMethodServerConnection = nullptr;
|
|
|
|
KWaylandServer::ClientConnection *m_screenLockerClientConnection = nullptr;
|
2015-04-02 12:37:23 +00:00
|
|
|
struct {
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::ClientConnection *server = nullptr;
|
2015-04-02 12:37:23 +00:00
|
|
|
KWayland::Client::ConnectionThread *client = nullptr;
|
2015-08-17 07:42:12 +00:00
|
|
|
QThread *clientThread = nullptr;
|
2015-08-14 07:28:46 +00:00
|
|
|
KWayland::Client::Registry *registry = nullptr;
|
2018-08-22 12:56:48 +00:00
|
|
|
KWayland::Client::Compositor *compositor = nullptr;
|
2018-08-21 20:06:42 +00:00
|
|
|
KWayland::Client::Seat *seat = nullptr;
|
|
|
|
KWayland::Client::DataDeviceManager *ddm = nullptr;
|
2017-09-30 14:33:45 +00:00
|
|
|
bool interfacesAnnounced = false;
|
2015-04-02 12:37:23 +00:00
|
|
|
|
|
|
|
} m_internalConnection;
|
2020-07-22 20:27:29 +00:00
|
|
|
KWaylandServer::XdgForeignV2Interface *m_XdgForeign = nullptr;
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::KeyStateInterface *m_keyState = nullptr;
|
2020-03-04 07:55:26 +00:00
|
|
|
QList<AbstractClient *> m_clients;
|
2020-03-17 05:48:05 +00:00
|
|
|
InitializationFlags m_initFlags;
|
2020-04-29 15:18:41 +00:00
|
|
|
QVector<KWaylandServer::PlasmaShellSurfaceInterface*> m_plasmaShellSurfaces;
|
2015-02-09 12:28:37 +00:00
|
|
|
KWIN_SINGLETON(WaylandServer)
|
|
|
|
};
|
|
|
|
|
|
|
|
inline
|
|
|
|
WaylandServer *waylandServer() {
|
|
|
|
return WaylandServer::self();
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace KWin
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|