KWin
Loading...
Searching...
No Matches
src
idle_inhibition.h
Go to the documentation of this file.
1
/*
2
KWin - the KDE window manager
3
This file is part of the KDE project.
4
5
SPDX-FileCopyrightText: 2017 Martin Flöser <mgraesslin@kde.org>
6
SPDX-FileCopyrightText: 2018 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
7
8
SPDX-License-Identifier: GPL-2.0-or-later
9
*/
10
#pragma once
11
12
#include <QList>
13
#include <QMap>
14
#include <QObject>
15
16
namespace
KWin
17
{
18
class
Window
;
19
20
class
IdleInhibition
:
public
QObject
21
{
22
Q_OBJECT
23
public
:
24
explicit
IdleInhibition
(QObject *parent =
nullptr
);
25
~IdleInhibition
()
override
;
26
27
void
registerClient
(
Window
*client);
28
29
private
Q_SLOTS:
30
void
slotWorkspaceCreated();
31
void
slotDesktopChanged();
32
33
private
:
34
void
inhibit(
Window
*client);
35
void
uninhibit(
Window
*client);
36
void
update(
Window
*client);
37
38
QMap<Window *, QMetaObject::Connection> m_connections;
39
};
40
}
KWin::IdleInhibition
Definition
idle_inhibition.h:21
KWin::IdleInhibition::registerClient
void registerClient(Window *client)
Definition
idle_inhibition.cpp:32
KWin::IdleInhibition::IdleInhibition
IdleInhibition(QObject *parent=nullptr)
Definition
idle_inhibition.cpp:23
KWin::IdleInhibition::~IdleInhibition
~IdleInhibition() override
KWin::Window
Definition
window.h:61
Window
Definition
copy.cpp:16
KWin
Definition
activation_test.cpp:20
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0