diff options
author | vaxerski <[email protected]> | 2022-08-27 22:03:57 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-08-27 22:03:57 +0200 |
commit | 47a4ea21caeee925646448b22a752a788c160f15 (patch) | |
tree | 430e914f9e34d16ac39d0b0c2a6d78d3c70b5d98 /src/render | |
parent | 96aaa73d9c6210e733a9261cbf048be0775e1687 (diff) | |
download | Hyprland-47a4ea21caeee925646448b22a752a788c160f15.tar.gz Hyprland-47a4ea21caeee925646448b22a752a788c160f15.zip |
fix popup positioning in render
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/Renderer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index cd81e19a..23ee5f11 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -246,6 +246,12 @@ void CHyprRenderer::renderWindow(CWindow* pWindow, CMonitor* pMonitor, timespec* if (mode == RENDER_PASS_ALL || mode == RENDER_PASS_POPUP) { if (!pWindow->m_bIsX11) { + wlr_box geom; + wlr_xdg_surface_get_geometry(pWindow->m_uSurface.xdg, &geom); + + renderdata.x -= geom.x; + renderdata.y -= geom.y; + renderdata.dontRound = true; // don't round popups renderdata.pMonitor = pMonitor; renderdata.squishOversized = false; // don't squish popups |