From a69fd21a1ac90c24cee659595d62329f8638d632 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 31 Oct 2022 12:26:07 +0000 Subject: Add an idleinhibit windowrule --- src/Compositor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 12f753f8..ba6312f4 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -728,6 +728,8 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) { g_pLayoutManager->getCurrentLayout()->onWindowFocusChange(nullptr); m_pLastFocus = nullptr; + + g_pInputManager->recheckIdleInhibitorStatus(); return; } @@ -787,7 +789,8 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) { if (PCONSTRAINT) g_pInputManager->constrainMouse(m_sSeat.mouse, PCONSTRAINT); } - + + g_pInputManager->recheckIdleInhibitorStatus(); } void CCompositor::focusSurface(wlr_surface* pSurface, CWindow* pWindowOwner) { @@ -1691,6 +1694,8 @@ void CCompositor::setWindowFullscreen(CWindow* pWindow, bool on, eFullscreenMode g_pXWaylandManager->setWindowSize(pWindow, pWindow->m_vRealSize.goalv(), true); forceReportSizesToWindowsOnWorkspace(pWindow->m_iWorkspaceID); + + g_pInputManager->recheckIdleInhibitorStatus(); } void CCompositor::moveUnmanagedX11ToWindows(CWindow* pWindow) { -- cgit v1.2.3