mirror of
https://github.com/hyprwm/hypridle.git
synced 2025-12-25 19:40:04 +01:00
clang-format
This commit is contained in:
parent
337420ee9b
commit
97ea5a01be
1 changed files with 10 additions and 6 deletions
|
|
@ -56,7 +56,7 @@ void CHypridle::run() {
|
|||
|
||||
static const auto IGNOREWAYLANDINHIBIT = g_pConfigManager->getValue<Hyprlang::INT>("general:ignore_wayland_inhibit");
|
||||
|
||||
const auto RULES = g_pConfigManager->getRules();
|
||||
const auto RULES = g_pConfigManager->getRules();
|
||||
m_sWaylandIdleState.listeners.resize(RULES.size());
|
||||
|
||||
Debug::log(LOG, "found {} rules", RULES.size());
|
||||
|
|
@ -68,9 +68,11 @@ void CHypridle::run() {
|
|||
l.onTimeout = r.onTimeout;
|
||||
|
||||
if (!*IGNOREWAYLANDINHIBIT)
|
||||
l.notification = makeShared<CCExtIdleNotificationV1>(m_sWaylandIdleState.notifier->sendGetIdleNotification(r.timeout * 1000 /* ms */, m_sWaylandState.seat->resource()));
|
||||
l.notification =
|
||||
makeShared<CCExtIdleNotificationV1>(m_sWaylandIdleState.notifier->sendGetIdleNotification(r.timeout * 1000 /* ms */, m_sWaylandState.seat->resource()));
|
||||
else
|
||||
l.notification = makeShared<CCExtIdleNotificationV1>(m_sWaylandIdleState.notifier->sendGetInputIdleNotification(r.timeout * 1000 /* ms */, m_sWaylandState.seat->resource()));
|
||||
l.notification =
|
||||
makeShared<CCExtIdleNotificationV1>(m_sWaylandIdleState.notifier->sendGetInputIdleNotification(r.timeout * 1000 /* ms */, m_sWaylandState.seat->resource()));
|
||||
|
||||
l.notification->setData(&m_sWaylandIdleState.listeners[i]);
|
||||
|
||||
|
|
@ -296,7 +298,7 @@ void CHypridle::onInhibit(bool lock) {
|
|||
if (m_iInhibitLocks == 0 && isIdled) {
|
||||
static const auto IGNOREWAYLANDINHIBIT = g_pConfigManager->getValue<Hyprlang::INT>("general:ignore_wayland_inhibit");
|
||||
|
||||
const auto RULES = g_pConfigManager->getRules();
|
||||
const auto RULES = g_pConfigManager->getRules();
|
||||
|
||||
for (size_t i = 0; i < RULES.size(); ++i) {
|
||||
auto& l = m_sWaylandIdleState.listeners[i];
|
||||
|
|
@ -305,9 +307,11 @@ void CHypridle::onInhibit(bool lock) {
|
|||
l.notification->sendDestroy();
|
||||
|
||||
if (!*IGNOREWAYLANDINHIBIT)
|
||||
l.notification = makeShared<CCExtIdleNotificationV1>(m_sWaylandIdleState.notifier->sendGetIdleNotification(r.timeout * 1000 /* ms */, m_sWaylandState.seat->resource()));
|
||||
l.notification =
|
||||
makeShared<CCExtIdleNotificationV1>(m_sWaylandIdleState.notifier->sendGetIdleNotification(r.timeout * 1000 /* ms */, m_sWaylandState.seat->resource()));
|
||||
else
|
||||
l.notification = makeShared<CCExtIdleNotificationV1>(m_sWaylandIdleState.notifier->sendGetInputIdleNotification(r.timeout * 1000 /* ms */, m_sWaylandState.seat->resource()));
|
||||
l.notification =
|
||||
makeShared<CCExtIdleNotificationV1>(m_sWaylandIdleState.notifier->sendGetInputIdleNotification(r.timeout * 1000 /* ms */, m_sWaylandState.seat->resource()));
|
||||
|
||||
l.notification->setData(&m_sWaylandIdleState.listeners[i]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue