diff options
author | vaxerski <[email protected]> | 2022-05-28 18:33:47 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-05-28 18:33:47 +0200 |
commit | 5c911df35182b7e429636e5f7c6126cbbc8ba919 (patch) | |
tree | 41dc1de6acab7357461da1a01d03fcaa1cdbbb09 | |
parent | 15553804d644fd66c52d270c729c5250b06ee9e4 (diff) | |
download | Hyprland-5c911df35182b7e429636e5f7c6126cbbc8ba919.tar.gz Hyprland-5c911df35182b7e429636e5f7c6126cbbc8ba919.zip |
Fix closing anims on multimon
-rw-r--r-- | src/render/OpenGL.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 008d0dc3..5cf7b3f7 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -762,8 +762,8 @@ void CHyprOpenGLImpl::renderSnapshot(CWindow** pWindow) { windowBox.width = PMONITOR->vecPixelSize.x * scaleXY.x; windowBox.height = PMONITOR->vecPixelSize.y * scaleXY.y; - windowBox.x = PWINDOW->m_vRealPosition.vec().x - (PWINDOW->m_vOriginalClosedPos.x * scaleXY.x); - windowBox.y = PWINDOW->m_vRealPosition.vec().y - (PWINDOW->m_vOriginalClosedPos.y * scaleXY.y); + windowBox.x = (PWINDOW->m_vRealPosition.vec().x - PMONITOR->vecPosition.x) - ((PWINDOW->m_vOriginalClosedPos.x - PMONITOR->vecPosition.x) * scaleXY.x); + windowBox.y = (PWINDOW->m_vRealPosition.vec().y - PMONITOR->vecPosition.y) - ((PWINDOW->m_vOriginalClosedPos.y - PMONITOR->vecPosition.y) * scaleXY.y); pixman_region32_t fakeDamage; pixman_region32_init_rect(&fakeDamage, 0, 0, PMONITOR->vecPixelSize.x, PMONITOR->vecPixelSize.y); |