You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

34 lines
566 B

/*
KWin - the KDE window manager
This file is part of the KDE project.
SPDX-FileCopyrightText: 2023 Xaver Hugl <xaver.hugl@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include "input_event_spy.h"
#include <QObject>
namespace KWin
{
class LidSwitchTracker : public QObject, InputEventSpy
{
Q_OBJECT
public:
explicit LidSwitchTracker();
bool isLidClosed() const;
Q_SIGNALS:
void lidStateChanged();
private:
void switchEvent(KWin::SwitchEvent *event) override;
bool m_isLidClosed = false;
};
}