/* KWin - the KDE window manager This file is part of the KDE project. SPDX-FileCopyrightText: 2021 David Edmundson SPDX-FileCopyrightText: 2021 David Redondo SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include "wayland/datadevice.h" #include namespace KWin { namespace Xwl { class Xvisit; class Dnd; class XwlDropHandler : public AbstractDropHandler { Q_OBJECT public: XwlDropHandler(Dnd *dnd); void updateDragTarget(SurfaceInterface *surface, quint32 serial) override; bool handleClientMessage(xcb_client_message_event_t *event); private: void drop() override; Xvisit *m_xvisit = nullptr; Dnd *const m_dnd; QList m_previousVisits; }; } }