525d12bee5
If you want git blame to ignore formatting revisions run: git config blame.ignoreRevsFile .git-blame-ignore-revs
33 lines
779 B
C++
33 lines
779 B
C++
/*
|
|
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "touch_interface.h"
|
|
|
|
#include "qwayland-server-wayland.h"
|
|
|
|
namespace KWaylandServer
|
|
{
|
|
class ClientConnection;
|
|
|
|
class TouchInterfacePrivate : public QtWaylandServer::wl_touch
|
|
{
|
|
public:
|
|
static TouchInterfacePrivate *get(TouchInterface *touch);
|
|
TouchInterfacePrivate(TouchInterface *q, SeatInterface *seat);
|
|
|
|
QList<Resource *> touchesForClient(ClientConnection *client) const;
|
|
|
|
TouchInterface *q;
|
|
QPointer<SurfaceInterface> focusedSurface;
|
|
SeatInterface *seat;
|
|
|
|
protected:
|
|
void touch_release(Resource *resource) override;
|
|
};
|
|
|
|
} // namespace KWaylandServer
|