From 5d93fdfd8fbd1e1fd824a7b022fe889547dbaf6c Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 24 Mar 2022 19:14:09 +0100 Subject: [PATCH] fix XDG surfaces being too XD --- src/render/Renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index dd5cd54a..c9dada6d 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -20,7 +20,7 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) { wlr_box windowBox; - if (RDATA->surface) { + if (RDATA->surface && surface == RDATA->surface) { windowBox = {(int)outputX + RDATA->x + x, (int)outputY + RDATA->y + y, RDATA->w, RDATA->h}; wlr_renderer_scissor(g_pCompositor->m_sWLRRenderer, &windowBox); } else {