KWin
Loading...
Searching...
No Matches
xwayland_interface.h
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2019 Roman Gilg <subdiff@gmail.com>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9#pragma once
10
11#include "effect/globals.h"
12
13#include <QObject>
14
15class QProcess;
16
17namespace KWin
18{
19class AbstractDropHandler;
20class Window;
21
22namespace Xwl
23{
24enum class DragEventReply {
25 // event should be ignored by the filter
26 Ignore,
27 // event is filtered out
28 Take,
29 // event should be handled as a Wayland native one
30 Wayland,
31};
32} // namespace Xwl
33
34class KWIN_EXPORT XwaylandInterface
35{
36public:
39
40protected:
41 explicit XwaylandInterface() = default;
42 virtual ~XwaylandInterface() = default;
43
44private:
45 Q_DISABLE_COPY(XwaylandInterface)
46};
47
48} // namespace KWin
virtual ~XwaylandInterface()=default
virtual AbstractDropHandler * xwlDropHandler()=0
virtual Xwl::DragEventReply dragMoveFilter(Window *target)=0