diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-07 18:54:31 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-07 18:54:31 +0200 |
| commit | e72fc4fca2089fcf5d364d81cac683ba12a62db8 (patch) | |
| tree | 6ffd94604b5132712b8d61e82cc65814691e4e3a /src | |
| parent | cebe45a1886e1642f77cffa01f4c5443b6e7c469 (diff) | |
Fix XWayland crash on moving invalid window
Diffstat (limited to 'src')
| -rw-r--r-- | src/managers/XWaylandManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index c3d66c5b..189089cd 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -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); } |
