From 382f851b30a089c0e54cff5272569dbf8d3c4828 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 31 Jul 2022 00:00:24 +0200 Subject: [PATCH] account for border in rounding --- src/render/Renderer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 904b8a1f..05a16004 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -32,8 +32,10 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) { scaleBox(&windowBox, RDATA->output->scale); static auto *const PROUNDING = &g_pConfigManager->getConfigValuePtr("decoration:rounding")->intValue; + static auto *const PBORDERTHICK = &g_pConfigManager->getConfigValuePtr("general:border_size")->intValue; float rounding = RDATA->dontRound ? 0 : RDATA->rounding == -1 ? *PROUNDING : RDATA->rounding; + rounding += *PBORDERTHICK; if (RDATA->surface && surface == RDATA->surface) { if (wlr_surface_is_xwayland_surface(surface) && !wlr_xwayland_surface_from_wlr_surface(surface)->has_alpha && RDATA->fadeAlpha * RDATA->alpha == 255.f) {