diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2025-12-11 16:29:26 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-11 16:29:26 +0000 |
| commit | 5dd224805deb437f6fa83359ee66a4d0f52262d2 (patch) | |
| tree | 9a5b2466a9cbbeaa03c8e3876fe103e18aad8794 /src/managers/input | |
| parent | 2ca7ad7efc1e20588af5c823ee46f23afad6cf91 (diff) | |
desktop/view: use aliveAndVisible for most things (#12631)
Diffstat (limited to 'src/managers/input')
| -rw-r--r-- | src/managers/input/IdleInhibitor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/managers/input/IdleInhibitor.cpp b/src/managers/input/IdleInhibitor.cpp index 0034a10f..5750080c 100644 --- a/src/managers/input/IdleInhibitor.cpp +++ b/src/managers/input/IdleInhibitor.cpp @@ -40,10 +40,10 @@ void CInputManager::recheckIdleInhibitorStatus() { auto WLSurface = Desktop::View::CWLSurface::fromResource(ii->inhibitor->m_surface.lock()); - if (!WLSurface) + if (!WLSurface || !WLSurface->view()) continue; - if (WLSurface->visible()) { + if (WLSurface->view()->aliveAndVisible()) { PROTO::idle->setInhibit(true); return; } @@ -85,10 +85,10 @@ bool CInputManager::isWindowInhibiting(const PHLWINDOW& w, bool onlyHl) { auto WLSurface = Desktop::View::CWLSurface::fromResource(surf); - if (!WLSurface) + if (!WLSurface || !WLSurface->view()) return; - if (WLSurface->visible()) + if (WLSurface->view()->aliveAndVisible()) *sc<bool*>(data) = true; }, &isInhibiting); |
