KWin
Loading...
Searching...
No Matches
src
xwayland
xwldrophandler.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: 2021 David Edmundson <davidedmundson@kde.org>
6
SPDX-FileCopyrightText: 2021 David Redondo <kde@david-redondo.de>
7
8
SPDX-License-Identifier: GPL-2.0-or-later
9
*/
10
11
#pragma once
12
13
#include "
wayland/datadevice.h
"
14
15
#include <xcb/xcb.h>
16
17
namespace
KWin
18
{
19
namespace
Xwl
20
{
21
22
class
Xvisit;
23
class
Dnd;
24
25
class
XwlDropHandler
:
public
AbstractDropHandler
26
{
27
Q_OBJECT
28
public
:
29
XwlDropHandler
(
Dnd
*dnd);
30
31
void
updateDragTarget
(
SurfaceInterface
*surface, quint32 serial)
override
;
32
bool
handleClientMessage
(xcb_client_message_event_t *event);
33
34
private
:
35
void
drop()
override
;
36
Xvisit
*m_xvisit =
nullptr
;
37
Dnd
*
const
m_dnd;
38
QList<Xvisit *> m_previousVisits;
39
};
40
}
41
}
KWin::AbstractDropHandler
Definition
abstract_drop_handler.h:19
KWin::SurfaceInterface
Resource representing a wl_surface.
Definition
surface.h:80
KWin::Xwl::Dnd
Definition
dnd.h:34
KWin::Xwl::Xvisit
Definition
drag_wl.h:51
KWin::Xwl::XwlDropHandler
Definition
xwldrophandler.h:26
KWin::Xwl::XwlDropHandler::XwlDropHandler
XwlDropHandler(Dnd *dnd)
Definition
xwldrophandler.cpp:23
KWin::Xwl::XwlDropHandler::updateDragTarget
void updateDragTarget(SurfaceInterface *surface, quint32 serial) override
Definition
xwldrophandler.cpp:50
KWin::Xwl::XwlDropHandler::handleClientMessage
bool handleClientMessage(xcb_client_message_event_t *event)
Definition
xwldrophandler.cpp:36
datadevice.h
KWin
Definition
activation_test.cpp:20
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0