From 98a4fa2b0d79298fa29b048a3ba15c3bf5aed8cd Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Fri, 16 Dec 2022 17:17:31 +0000 Subject: Added clang format (#1239) * clang-format stuff and format files --- src/managers/input/IdleInhibitor.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/managers/input/IdleInhibitor.cpp') diff --git a/src/managers/input/IdleInhibitor.cpp b/src/managers/input/IdleInhibitor.cpp index 8c0a3267..3e3411fb 100644 --- a/src/managers/input/IdleInhibitor.cpp +++ b/src/managers/input/IdleInhibitor.cpp @@ -17,17 +17,18 @@ void CInputManager::newIdleInhibitor(wlr_idle_inhibitor_v1* pInhibitor) { PINHIBIT->pWlrInhibitor = pInhibitor; - PINHIBIT->hyprListener_Destroy.initCallback(&pInhibitor->events.destroy, [](void* owner, void* data){ + PINHIBIT->hyprListener_Destroy.initCallback( + &pInhibitor->events.destroy, + [](void* owner, void* data) { + const auto PINH = (SIdleInhibitor*)owner; - const auto PINH = (SIdleInhibitor*)owner; + g_pInputManager->m_lIdleInhibitors.remove(*PINH); - g_pInputManager->m_lIdleInhibitors.remove(*PINH); + Debug::log(LOG, "Destroyed an idleinhibitor"); - Debug::log(LOG, "Destroyed an idleinhibitor"); - - g_pInputManager->recheckIdleInhibitorStatus(); - - }, PINHIBIT, "IdleInhibitor"); + g_pInputManager->recheckIdleInhibitorStatus(); + }, + PINHIBIT, "IdleInhibitor"); PINHIBIT->pWindow = g_pCompositor->getWindowFromSurface(pInhibitor->surface); -- cgit v1.2.3