mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-11-27 18:24:01 +03:00
Fix XWayland crash on moving invalid window
This commit is contained in:
parent
cebe45a188
commit
e72fc4fca2
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user