noctalia-shell icon indicating copy to clipboard operation
noctalia-shell copied to clipboard

[BUG] Wallpaper transition animation is skipped when backdrop is enabled with tint_intensity < 0.1 (niri)

Open narayan-bhardwaj opened this issue 1 month ago • 1 comments

Submission checklist

  • [x] I have searched existing issues and confirmed this is not a duplicate.
  • [x] I am using the latest available version of Noctalia.

Bug description

With Noctalia's backdrop enabled, changing the wallpaper uses no transition animation (instant swap). The transition only plays in two cases: (1) backdrop disabled, or (2) backdrop enabled with tint_intensity >= 0.1. With backdrop enabled and tint_intensity below 0.1 (e.g. 0.0 or 0.05), the transition is silently skipped.

Steps to reproduce

  1. Run Noctalia on niri with a wallpaper directory containing several wallpapers and a non-empty transition list.
  2. Enable the backdrop and set tint_intensity below 0.1: [backdrop] enabled = true blur_intensity = 0.0 tint_intensity = 0.05
  3. Change the wallpaper (next/random).
  4. Observe: wallpaper swaps instantly, no transition animation.
  5. Raise tint_intensity to 0.1 (or disable the backdrop) and change the wallpaper again.
  6. Observe: the transition animation now plays.

Expected behavior

The wallpaper transition animation plays regardless of whether the backdrop is enabled and regardless of tint_intensity.

Actual behavior

The wallpaper transition is skipped (instant switch) whenever the backdrop is enabled and tint_intensity < 0.1. Exactly 0.1 or higher, or disabling the backdrop, restores it. The behaviour flips at the 0.1 boundary, which points at a comparison/boundary issue in the backdrop tint path rather than a performance problem.

Logs / error output

No errors are printed — the transition is simply skipped. Backdrop is composited via niri's backdrop feature.

Noctalia version

v5.3.0 (package noctalia 5.3.0-1.1; reports as: noctalia v5.3.0 (5.3.0-1-dirty))

Compositor

Niri

Distribution

Arch-based

Environment information

Installation method: Arch package (CachyOS repo, noctalia 5.3.0-1.1)
Compositor:          niri 26.04 (8ed0da4)
Quickshell:          0.3.2 (Arch package)
GPU:                 Intel Alder Lake-UP3 GT1 [UHD Graphics] (i915)
Kernel:              7.2.9-2-cachyos
Session:             Wayland

Additional context

Noctalia config (~/.local/state/noctalia/settings.toml): [backdrop] blur_intensity = 0.0 enabled = true tint_intensity = 0.099999997764825821 # works; values below 0.1 skip the transition

[wallpaper] transition = [ "fade", "wipe", "disc", "stripes", "zoom", "honeycomb" ] transition_on_startup = true

Relevant niri layer rule (~/.config/niri/cfg/rules.kdl): layer-rule { match namespace="^noctalia-wallpaper" place-within-backdrop true }

Disabling the backdrop also makes transitions work, pointing at the backdrop tinting/compositing path interacting with the wallpaper transition layer.

narayan-bhardwaj avatar Oct 17 '26 06:10 narayan-bhardwaj

I could reproduce this on niri 26.04 with current main. There's no 0.1 cutoff in the code. What happens is that the backdrop surface ends up in front of the wallpaper.

Your niri config places noctalia-wallpaper within niri's backdrop (the stationary wallpaper setup), but has no rule for noctalia-backdrop. So the backdrop stays on the normal background layer, above the wallpaper. It shows a tinted (and blurred) copy of the wallpaper and switches to the new image at once, without a transition. The wallpaper's transition does run underneath. You only see it because the tinted backdrop is slightly see-through: t - t² of what's behind it shows, so about 5% at 0.05, 9% at 0.1 and 21% at 0.3. That's why it seemed to start working around 0.1. The see-through part is a bug of its own, fixed in #5163.

With the stationary wallpaper setup you don't need the backdrop, so this fixes it:

[backdrop]
enabled = false

If you'd rather have the blurred backdrop in the overview, use the noctalia-backdrop rule from the niri docs (option 1) instead of the noctalia-wallpaper one.

After #5163 the backdrop is fully opaque, so with your current config the transition won't show at any tint. The config change above is the real fix.

mirfalltnixein avatar Nov 01 '26 23:11 mirfalltnixein