KWin
Loading...
Searching...
No Matches
libinputbackend.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "core/inputbackend.h"
10
11#include <QThread>
12
13namespace KWin
14{
15
16class Session;
17
18namespace LibInput
19{
20class Connection;
21}
22
23class KWIN_EXPORT LibinputBackend : public InputBackend
24{
25 Q_OBJECT
26
27public:
28 explicit LibinputBackend(Session *session, QObject *parent = nullptr);
29 ~LibinputBackend() override;
30
31 void initialize() override;
32 void updateScreens() override;
33
34private:
35 QThread m_thread;
36 std::unique_ptr<LibInput::Connection> m_connection;
37};
38
39} // namespace KWin