2015-02-09 12:28:37 +00:00
|
|
|
/********************************************************************
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
Copyright (C) 2015 Martin Gräßlin <mgraesslin@kde.org>
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*********************************************************************/
|
|
|
|
#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-04-02 12:37:23 +00:00
|
|
|
class ShmPool;
|
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;
|
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;
|
2019-01-01 17:37:18 +00:00
|
|
|
class XdgDecorationManagerInterface;
|
2016-04-22 12:13:37 +00:00
|
|
|
class XdgShellInterface;
|
2017-10-13 09:32:02 +00:00
|
|
|
class XdgForeignInterface;
|
2018-05-18 13:16:13 +00:00
|
|
|
class XdgOutputManagerInterface;
|
2019-06-21 14:02:50 +00:00
|
|
|
class KeyStateInterface;
|
2019-10-26 03:40:01 +00:00
|
|
|
class LinuxDmabufUnstableV1Interface;
|
|
|
|
class LinuxDmabufUnstableV1Buffer;
|
2020-03-17 14:21:35 +00:00
|
|
|
class TabletManagerInterface;
|
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
|
|
|
|
{
|
2019-08-30 21:36:58 +00:00
|
|
|
class XdgShellClient;
|
2015-02-09 12:28:37 +00:00
|
|
|
|
2015-06-16 04:50:22 +00:00
|
|
|
class AbstractClient;
|
2016-06-07 09:43:56 +00:00
|
|
|
class Toplevel;
|
2015-03-20 13:41:03 +00:00
|
|
|
|
2015-02-09 12:28:37 +00:00
|
|
|
class KWIN_EXPORT WaylandServer : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
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-03-17 05:48:05 +00:00
|
|
|
bool init(const QByteArray &socketName = QByteArray(), InitializationFlags flags = InitializationFlag::NoOptions);
|
2015-11-18 09:29:10 +00:00
|
|
|
void terminateClientConnections();
|
2015-02-09 12:28:37 +00:00
|
|
|
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::Display *display() {
|
2015-02-09 12:28:37 +00:00
|
|
|
return m_display;
|
|
|
|
}
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::CompositorInterface *compositor() {
|
2015-02-09 12:28:37 +00:00
|
|
|
return m_compositor;
|
|
|
|
}
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::SeatInterface *seat() {
|
2015-02-09 12:28:37 +00:00
|
|
|
return m_seat;
|
|
|
|
}
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::TabletManagerInterface *tabletManager()
|
2020-03-17 14:21:35 +00:00
|
|
|
{
|
|
|
|
return m_tabletManager;
|
|
|
|
}
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::DataDeviceManagerInterface *dataDeviceManager() {
|
2018-08-21 20:06:42 +00:00
|
|
|
return m_dataDeviceManager;
|
|
|
|
}
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::PlasmaVirtualDesktopManagementInterface *virtualDesktopManagement() {
|
[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-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::PlasmaWindowManagementInterface *windowManagement() {
|
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-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::XdgOutputManagerInterface *xdgOutputManager() const {
|
2018-05-18 13:16:13 +00:00
|
|
|
return m_xdgOutputManager;
|
|
|
|
}
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::LinuxDmabufUnstableV1Interface *linuxDmabuf();
|
2018-05-18 13:16:13 +00:00
|
|
|
|
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);
|
|
|
|
AbstractClient *findClient(quint32 id) const;
|
2020-04-29 15:18:41 +00:00
|
|
|
AbstractClient *findClient(KWaylandServer::SurfaceInterface *surface) const;
|
|
|
|
XdgShellClient *findXdgShellClient(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-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::ClientConnection *xWaylandConnection() const {
|
2015-11-10 13:21:48 +00:00
|
|
|
return m_xwayland.client;
|
2015-04-02 07:49:39 +00:00
|
|
|
}
|
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::ShmPool *internalShmPool() {
|
|
|
|
return m_internalConnection.shm;
|
|
|
|
}
|
|
|
|
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();
|
2020-04-29 15:18:41 +00:00
|
|
|
quint32 createWindowId(KWaylandServer::SurfaceInterface *surface);
|
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);
|
|
|
|
}
|
|
|
|
|
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);
|
2020-04-29 15:18:41 +00:00
|
|
|
quint16 createClientId(KWaylandServer::ClientConnection *c);
|
2015-11-18 09:29:10 +00:00
|
|
|
void destroyInternalConnection();
|
2016-04-22 12:13:37 +00:00
|
|
|
template <class T>
|
|
|
|
void createSurface(T *surface);
|
2017-09-30 14:33:45 +00:00
|
|
|
void initScreenLocker();
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::Display *m_display = nullptr;
|
|
|
|
KWaylandServer::CompositorInterface *m_compositor = nullptr;
|
|
|
|
KWaylandServer::SeatInterface *m_seat = nullptr;
|
|
|
|
KWaylandServer::TabletManagerInterface *m_tabletManager = nullptr;
|
|
|
|
KWaylandServer::DataDeviceManagerInterface *m_dataDeviceManager = nullptr;
|
|
|
|
KWaylandServer::XdgShellInterface *m_xdgShell = 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;
|
|
|
|
KWaylandServer::XdgOutputManagerInterface *m_xdgOutputManager = nullptr;
|
|
|
|
KWaylandServer::XdgDecorationManagerInterface *m_xdgDecorationManager = nullptr;
|
|
|
|
KWaylandServer::LinuxDmabufUnstableV1Interface *m_linuxDmabuf = nullptr;
|
|
|
|
QSet<KWaylandServer::LinuxDmabufUnstableV1Buffer*> m_linuxDmabufBuffers;
|
2015-11-10 13:21:48 +00:00
|
|
|
struct {
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::ClientConnection *client = nullptr;
|
2015-11-10 13:21:48 +00:00
|
|
|
QMetaObject::Connection destroyConnection;
|
|
|
|
} m_xwayland;
|
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;
|
2015-04-02 12:37:23 +00:00
|
|
|
KWayland::Client::ShmPool *shm = nullptr;
|
2017-09-30 14:33:45 +00:00
|
|
|
bool interfacesAnnounced = false;
|
2015-04-02 12:37:23 +00:00
|
|
|
|
|
|
|
} m_internalConnection;
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::XdgForeignInterface *m_XdgForeign = nullptr;
|
|
|
|
KWaylandServer::KeyStateInterface *m_keyState = nullptr;
|
2020-03-04 07:55:26 +00:00
|
|
|
QList<AbstractClient *> m_clients;
|
2020-04-29 15:18:41 +00:00
|
|
|
QHash<KWaylandServer::ClientConnection*, quint16> m_clientIds;
|
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
|
|
|
|
|