From be6e1a33b1d37ce3639ceb5c40fce581c77fd54a Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 8 Dec 2022 18:52:48 +0000 Subject: [PATCH] ensure mapped state in addViewCoords --- src/events/Windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 0c264f9b..45a0b561 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -20,7 +20,7 @@ void addViewCoords(void* pWindow, int* x, int* y) { *x += PWINDOW->m_vRealPosition.goalv().x; *y += PWINDOW->m_vRealPosition.goalv().y; - if (!PWINDOW->m_bIsX11) { + if (!PWINDOW->m_bIsX11 && PWINDOW->m_bIsMapped) { wlr_box geom; wlr_xdg_surface_get_geometry(PWINDOW->m_uSurface.xdg, &geom);