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>
|
|
|
|
|
|
|
|
#include <QObject>
|
2021-10-04 16:36:32 +00:00
|
|
|
#include <QPointer>
|
|
|
|
#include <QSet>
|
2015-02-09 12:28:37 +00:00
|
|
|
|
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;
|
|
|
|
|
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;
|
2021-08-22 09:49:57 +00:00
|
|
|
class PlasmaWindowActivationFeedbackInterface;
|
[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;
|
2021-10-25 00:05:23 +00:00
|
|
|
class PrimaryOutputV1Interface;
|
2021-07-21 10:11:21 +00:00
|
|
|
class OutputManagementV2Interface;
|
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;
|
2021-07-20 19:37:03 +00:00
|
|
|
class LinuxDmaBufV1ClientBufferIntegration;
|
|
|
|
class LinuxDmaBufV1ClientBuffer;
|
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;
|
2021-04-04 14:11:13 +00:00
|
|
|
class AbstractOutput;
|
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;
|
2021-04-04 14:11:13 +00:00
|
|
|
class WaylandOutput;
|
|
|
|
class WaylandOutputDevice;
|
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-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;
|
|
|
|
}
|
2021-08-22 09:49:57 +00:00
|
|
|
KWaylandServer::PlasmaWindowActivationFeedbackInterface *plasmaActivationFeedback() const
|
|
|
|
{
|
|
|
|
return m_plasmaActivationFeedback;
|
|
|
|
}
|
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;
|
|
|
|
}
|
2022-03-23 10:13:38 +00:00
|
|
|
KWaylandServer::ServerSideDecorationManagerInterface *decorationManager() const
|
|
|
|
{
|
2015-12-17 10:14:54 +00:00
|
|
|
return m_decorationManager;
|
|
|
|
}
|
2022-03-23 10:13:38 +00:00
|
|
|
KWaylandServer::XdgOutputManagerV1Interface *xdgOutputManagerV1() const
|
|
|
|
{
|
2020-08-20 14:53:10 +00:00
|
|
|
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;
|
|
|
|
|
2021-07-20 19:37:03 +00:00
|
|
|
KWaylandServer::LinuxDmaBufV1ClientBufferIntegration *linuxDmabuf();
|
2018-05-18 13:16:13 +00:00
|
|
|
|
2022-03-23 10:13:38 +00:00
|
|
|
KWaylandServer::InputMethodV1Interface *inputMethod() const
|
|
|
|
{
|
2020-07-11 16:40:28 +00:00
|
|
|
return m_inputMethod;
|
|
|
|
}
|
2022-03-23 10:13:38 +00:00
|
|
|
KWaylandServer::IdleInterface *idle() const
|
|
|
|
{
|
2021-09-03 17:17:07 +00:00
|
|
|
return m_idle;
|
|
|
|
}
|
2022-03-23 10:13:38 +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-11-07 02:03:57 +00:00
|
|
|
AbstractClient *findClient(const 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;
|
|
|
|
|
2021-05-13 10:28:20 +00:00
|
|
|
void initPlatform();
|
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;
|
2021-12-13 17:29:16 +00:00
|
|
|
KWaylandServer::ClientConnection *inputMethodConnection() const;
|
2022-03-23 10:13:38 +00:00
|
|
|
KWaylandServer::ClientConnection *screenLockerClientConnection() const
|
|
|
|
{
|
2015-11-06 14:08:13 +00:00
|
|
|
return m_screenLockerClientConnection;
|
|
|
|
}
|
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
|
|
|
*/
|
2022-03-23 10:13:38 +00:00
|
|
|
struct SocketPairConnection
|
|
|
|
{
|
2016-12-03 13:54:32 +00:00
|
|
|
/**
|
|
|
|
* 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();
|
2021-10-04 16:36:32 +00:00
|
|
|
void updateKeyState(KWin::LEDs leds);
|
2017-12-29 17:29:19 +00:00
|
|
|
|
2022-03-23 10:13:38 +00:00
|
|
|
QSet<KWaylandServer::LinuxDmaBufV1ClientBuffer *> linuxDmabufBuffers() const
|
|
|
|
{
|
2019-10-26 03:40:01 +00:00
|
|
|
return m_linuxDmabufBuffers;
|
|
|
|
}
|
2022-03-23 10:13:38 +00:00
|
|
|
void addLinuxDmabufBuffer(KWaylandServer::LinuxDmaBufV1ClientBuffer *buffer)
|
|
|
|
{
|
2019-10-26 03:40:01 +00:00
|
|
|
m_linuxDmabufBuffers << buffer;
|
|
|
|
}
|
2022-03-23 10:13:38 +00:00
|
|
|
void removeLinuxDmabufBuffer(KWaylandServer::LinuxDmaBufV1ClientBuffer *buffer)
|
|
|
|
{
|
2019-10-26 03:40:01 +00:00
|
|
|
m_linuxDmabufBuffers.remove(buffer);
|
|
|
|
}
|
|
|
|
|
2022-04-14 08:32:51 +00:00
|
|
|
AbstractOutput *findOutput(KWaylandServer::OutputInterface *output) const;
|
2020-08-07 13:28:49 +00:00
|
|
|
|
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-08-16 07:26:17 +00:00
|
|
|
void initialized();
|
2020-04-29 15:18:41 +00:00
|
|
|
void foreignTransientChanged(KWaylandServer::SurfaceInterface *child);
|
2022-03-28 15:07:28 +00:00
|
|
|
void lockStateChanged();
|
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);
|
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);
|
2021-04-04 14:11:13 +00:00
|
|
|
void handleOutputAdded(AbstractOutput *output);
|
|
|
|
void handleOutputRemoved(AbstractOutput *output);
|
|
|
|
void handleOutputEnabled(AbstractOutput *output);
|
|
|
|
void handleOutputDisabled(AbstractOutput *output);
|
2022-03-28 16:08:59 +00:00
|
|
|
|
|
|
|
class LockScreenPresentationWatcher : public QObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
LockScreenPresentationWatcher(WaylandServer *server);
|
|
|
|
|
|
|
|
private:
|
|
|
|
QSet<AbstractOutput *> m_signaledOutputs;
|
|
|
|
};
|
|
|
|
|
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;
|
2021-08-22 09:49:57 +00:00
|
|
|
KWaylandServer::PlasmaWindowActivationFeedbackInterface *m_plasmaActivationFeedback = nullptr;
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::PlasmaWindowManagementInterface *m_windowManagement = nullptr;
|
|
|
|
KWaylandServer::PlasmaVirtualDesktopManagementInterface *m_virtualDesktopManagement = nullptr;
|
|
|
|
KWaylandServer::ServerSideDecorationManagerInterface *m_decorationManager = nullptr;
|
2021-07-21 10:11:21 +00:00
|
|
|
KWaylandServer::OutputManagementV2Interface *m_outputManagement = nullptr;
|
2020-04-29 15:18:41 +00:00
|
|
|
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;
|
2021-07-20 19:37:03 +00:00
|
|
|
KWaylandServer::LinuxDmaBufV1ClientBufferIntegration *m_linuxDmabuf = nullptr;
|
2020-05-29 09:18:47 +00:00
|
|
|
KWaylandServer::KeyboardShortcutsInhibitManagerV1Interface *m_keyboardShortcutsInhibitManager = nullptr;
|
2022-03-23 10:13:38 +00:00
|
|
|
QSet<KWaylandServer::LinuxDmaBufV1ClientBuffer *> 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;
|
2021-12-13 17:29:16 +00:00
|
|
|
QPointer<KWaylandServer::ClientConnection> m_inputMethodServerConnection;
|
2020-04-29 15:18:41 +00:00
|
|
|
KWaylandServer::ClientConnection *m_screenLockerClientConnection = nullptr;
|
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;
|
2021-10-25 00:05:23 +00:00
|
|
|
KWaylandServer::PrimaryOutputV1Interface *m_primary = nullptr;
|
2020-03-04 07:55:26 +00:00
|
|
|
QList<AbstractClient *> m_clients;
|
2020-03-17 05:48:05 +00:00
|
|
|
InitializationFlags m_initFlags;
|
2022-04-14 08:32:51 +00:00
|
|
|
QHash<AbstractOutput *, WaylandOutput *> m_waylandOutputs;
|
|
|
|
QHash<AbstractOutput *, WaylandOutputDevice *> m_waylandOutputDevices;
|
2015-02-09 12:28:37 +00:00
|
|
|
KWIN_SINGLETON(WaylandServer)
|
|
|
|
};
|
|
|
|
|
2022-03-23 10:13:38 +00:00
|
|
|
inline WaylandServer *waylandServer()
|
|
|
|
{
|
2015-02-09 12:28:37 +00:00
|
|
|
return WaylandServer::self();
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace KWin
|
|
|
|
|
|
|
|
#endif
|