optimization + revert one oopsie

This commit is contained in:
vaxerski
2022-06-29 12:54:53 +02:00
parent 73663a8ba5
commit 8820f7f210
4 changed files with 34 additions and 36 deletions

View File

@@ -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;
}