diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-10-31 12:26:07 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-10-31 12:26:07 +0000 |
| commit | a69fd21a1ac90c24cee659595d62329f8638d632 (patch) | |
| tree | c1c1302b9a732f52607df7c0c6f43525caf3a9f9 /src/Compositor.cpp | |
| parent | b6e33830af1a89a2cfbef446de1fc37e8a2b40e3 (diff) | |
Add an idleinhibit windowrule
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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) { |
