/* 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/abstract_drop_handler.h" #include namespace KWin { namespace Xwl { class Xvisit; class Dnd; class XwlDropHandler : public AbstractDropHandler { Q_OBJECT public: XwlDropHandler(Dnd *dnd); void updateDragTarget(SurfaceInterface *surface, const QPointF &position, quint32 serial) override; void motion(const QPointF &position) override; bool handleClientMessage(xcb_client_message_event_t *event); private: void drop() override; Dnd *const m_dnd; QList m_visits; Xvisit *m_currentVisit = nullptr; }; } }