KWin
Loading...
Searching...
No Matches
src
xwayland
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
15
class
QProcess;
16
17
namespace
KWin
18
{
19
class
AbstractDropHandler;
20
class
Window
;
21
22
namespace
Xwl
23
{
24
enum 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
34
class
KWIN_EXPORT
XwaylandInterface
35
{
36
public
:
37
virtual
Xwl::DragEventReply
dragMoveFilter
(
Window
*target) = 0;
38
virtual
AbstractDropHandler
*
xwlDropHandler
() = 0;
39
40
protected
:
41
explicit
XwaylandInterface
() =
default
;
42
virtual
~XwaylandInterface
() =
default
;
43
44
private
:
45
Q_DISABLE_COPY(
XwaylandInterface
)
46
};
47
48
}
// namespace KWin
KWin::AbstractDropHandler
Definition
abstract_drop_handler.h:19
KWin::Window
Definition
window.h:61
KWin::XwaylandInterface
Definition
xwayland_interface.h:35
KWin::XwaylandInterface::~XwaylandInterface
virtual ~XwaylandInterface()=default
KWin::XwaylandInterface::xwlDropHandler
virtual AbstractDropHandler * xwlDropHandler()=0
KWin::XwaylandInterface::dragMoveFilter
virtual Xwl::DragEventReply dragMoveFilter(Window *target)=0
KWin::XwaylandInterface::XwaylandInterface
XwaylandInterface()=default
Window
Definition
copy.cpp:16
globals.h
KWin::Xwl::DragEventReply
DragEventReply
Definition
xwayland_interface.h:24
KWin::Xwl::DragEventReply::Take
@ Take
KWin::Xwl::DragEventReply::Wayland
@ Wayland
KWin::Xwl::DragEventReply::Ignore
@ Ignore
KWin
Definition
activation_test.cpp:20
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0