KWin
Loading...
Searching...
No Matches
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
17namespace KWin
18{
19namespace Xwl
20{
21
22class Xvisit;
23class Dnd;
24
26{
27 Q_OBJECT
28public:
29 XwlDropHandler(Dnd *dnd);
30
31 void updateDragTarget(SurfaceInterface *surface, quint32 serial) override;
32 bool handleClientMessage(xcb_client_message_event_t *event);
33
34private:
35 void drop() override;
36 Xvisit *m_xvisit = nullptr;
37 Dnd *const m_dnd;
38 QList<Xvisit *> m_previousVisits;
39};
40}
41}
Resource representing a wl_surface.
Definition surface.h:80
void updateDragTarget(SurfaceInterface *surface, quint32 serial) override
bool handleClientMessage(xcb_client_message_event_t *event)