Fix XWayland crash on moving invalid window

This commit is contained in:
vaxerski 2022-04-07 18:54:31 +02:00
parent cebe45a188
commit e72fc4fca2
1 changed files with 3 additions and 0 deletions

View File

@ -162,6 +162,9 @@ bool CHyprXWaylandManager::shouldBeFloated(CWindow* pWindow) {
}
void CHyprXWaylandManager::moveXWaylandWindow(CWindow* pWindow, const Vector2D& pos) {
if (!g_pCompositor->windowValidMapped(pWindow))
return;
if (pWindow->m_bIsX11) {
wlr_xwayland_surface_configure(pWindow->m_uSurface.xwayland, pos.x, pos.y, pWindow->m_vRealSize.x, pWindow->m_vRealSize.y);
}