ensure mapped state in addViewCoords

This commit is contained in:
vaxerski 2022-12-08 18:52:48 +00:00
parent 6e3bd440ba
commit be6e1a33b1

View file

@ -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);