KWin
Loading...
Searching...
No Matches
touch_p.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#pragma once
8
9#include "touch.h"
10
11#include "qwayland-server-wayland.h"
12
13#include <QPointer>
14
15namespace KWin
16{
17class ClientConnection;
18
19class TouchInterfacePrivate : public QtWaylandServer::wl_touch
20{
21public:
24
25 QList<Resource *> touchesForClient(ClientConnection *client) const;
26 bool hasTouchesForClient(ClientConnection *client) const;
27
29 QPointer<SurfaceInterface> focusedSurface;
31
32protected:
33 void touch_release(Resource *resource) override;
34};
35
36} // namespace KWin
Convenient Class which represents a wl_client.
Represents a Seat on the Wayland Display.
Definition seat.h:134
SeatInterface * seat
Definition touch_p.h:30
TouchInterface * q
Definition touch_p.h:28
QList< Resource * > touchesForClient(ClientConnection *client) const
Definition touch.cpp:33
static TouchInterfacePrivate * get(TouchInterface *touch)
Definition touch.cpp:17
QPointer< SurfaceInterface > focusedSurface
Definition touch_p.h:29
TouchInterfacePrivate(TouchInterface *q, SeatInterface *seat)
Definition touch.cpp:22
bool hasTouchesForClient(ClientConnection *client) const
Definition touch.cpp:38
void touch_release(Resource *resource) override
Definition touch.cpp:28