From 48663fe0342f2afa7d30f52eaa865f116cce06c9 Mon Sep 17 00:00:00 2001 From: Juan Pablo Ugarte Date: Mon, 13 Apr 2026 22:31:58 -0400 Subject: [PATCH] CasildaCompositor: add support for non fractional scale Fix issue #16 "Firefox GTK backdrop/shadow not scaled correctly" --- CHANGELOG.md | 8 ++++++++ src/casilda-compositor.c | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4711ad..b8b025f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ packaging changes like new dependencies or build system changes. Casilda used even/odd minor numbers to differentiate between stable and development releases. +## Unreleased + + - Add support for non fractional scale + +### Issues + + - #16 Firefox GTK backdrop/shadow not scaled correctly + ## 1.2.3 2026-04-08 - 1.2.3 Second bugfix release diff --git a/src/casilda-compositor.c b/src/casilda-compositor.c index bece640..478fb08 100644 --- a/src/casilda-compositor.c +++ b/src/casilda-compositor.c @@ -699,6 +699,11 @@ snapshot_surfaces (struct wlr_surface *surface, int sx, int sy, void *data) w = surface->current.viewport.dst_width; h = surface->current.viewport.dst_height; } + else if (surface->current.scale > 1) + { + w /= surface->current.scale; + h /= surface->current.scale; + } gdk_paintable_snapshot (GDK_PAINTABLE (texture), sdata->snapshot, w, h);