xwayland: remove extra x11 deactivation (#7755)

This commit is contained in:
trianta 2024-09-12 04:15:01 -05:00 committed by GitHub
parent 8b9e385943
commit 73b9756b8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,11 +46,8 @@ void CHyprXWaylandManager::activateSurface(SP<CWLSurfaceResource> pSurface, bool
PWINDOW->m_pXWaylandSurface->restackToTop();
}
PWINDOW->m_pXWaylandSurface->activate(activate);
} else if (!PWINDOW->m_bIsX11 && PWINDOW->m_pXDGSurface) {
} else if (!PWINDOW->m_bIsX11 && PWINDOW->m_pXDGSurface)
PWINDOW->m_pXDGSurface->toplevel->setActive(activate);
if (g_pCompositor->m_pLastFocus && g_pCompositor->m_pLastWindow && g_pCompositor->m_pLastWindow->m_bIsX11)
activateSurface(g_pCompositor->m_pLastFocus.lock(), false);
}
}
void CHyprXWaylandManager::activateWindow(PHLWINDOW pWindow, bool activate) {