diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-06-29 12:54:53 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-06-29 12:54:53 +0200 |
| commit | 8820f7f210b1183c97dd58028093c27355a992e7 (patch) | |
| tree | 91dc1414dcfad9a24f258c6028c1342f7756b9d6 /src/Compositor.cpp | |
| parent | 73663a8ba550977f2a6a2f82fefc8ca54af2a757 (diff) | |
optimization + revert one oopsie
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index a3fd3b93..e86e31f3 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -322,7 +322,7 @@ void CCompositor::removeWindowFromVectorSafe(CWindow* pWindow) { } bool CCompositor::windowExists(CWindow* pWindow) { - for (auto& w : m_lWindows) { + for (auto& w : m_lWindows) { // TODO: get rid of unmanaged X11? if (&w == pWindow) return true; } @@ -586,9 +586,6 @@ bool CCompositor::windowValidMapped(CWindow* pWindow) { if (pWindow->m_bHidden) return false; - if (!g_pXWaylandManager->getWindowSurface(pWindow)) - return false; - return true; } |
