aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-20 22:45:30 +0200
committervaxerski <[email protected]>2022-08-20 22:45:30 +0200
commit9513031da30861b6ab593625aebe88b811758427 (patch)
treebb402e61f1fa43d1cf55dda4fcfe8f1790947ffd
parent08e874bcf91e524059ceaf8a757c463d412b7136 (diff)
downloadHyprland-9513031da30861b6ab593625aebe88b811758427.tar.gz
Hyprland-9513031da30861b6ab593625aebe88b811758427.zip
fix a minor border issue
-rw-r--r--src/render/Renderer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 71440dc7..a618a580 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -36,6 +36,8 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) {
float rounding = RDATA->dontRound ? 0 : RDATA->rounding == -1 ? *PROUNDING : RDATA->rounding;
rounding *= RDATA->output->scale;
+ rounding -= 1; // to fix a border issue
+
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) {
g_pHyprOpenGL->renderTexture(TEXTURE, &windowBox, RDATA->fadeAlpha * RDATA->alpha, rounding, true);