Hyprland: xray back on for the shell's glass, so it matches where it joins

Without xray each layer surface is blurred on its own from what is drawn
behind it, and how far that blur gathers depends on what is being redrawn.
Two surfaces that meet frosted to different shades: the launcher standing
on a bottom bar sat a step lighter than the strip under it (19-21 levels in
the rig, the same step in a screenshot of the real desktop), and panels did
the same. With xray all of them sample the one blurred background and the
step is gone (0-1). A panel over a window now frosts the wallpaper rather
than the window. Applies on a config reload; nothing needs restarting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sn3aky
2026-11-10 12:09:04 +01:00
Unverified
parent 95c936e328
commit 131addecad
+7 -5
View File
@@ -10,8 +10,10 @@ hl.layer_rule({ match = { namespace = "rofi" }, animation = "popin" })
-- xray points the blur at the background instead, so every pill, the dock
-- and the OSD frost the wallpaper and nothing else. The lock screen is
-- unaffected - it blurs the wallpaper client-side, not through the region.
-- Turned off deliberately: xray made the glass frost the wallpaper instead
-- of whatever is actually behind it, so a panel opened over a window showed
-- blurred wallpaper rather than the window. Real see-through glass is worth
-- the tint drift described above.
-- hl.layer_rule({ match = { namespace = "quickshell" }, xray = true })
-- It was off for a while, so a panel over a window frosted the window. But
-- without xray each surface is blurred on its own, and two that meet came out
-- in different shades: the launcher standing on the bar, or a panel hanging
-- from it, showed a seam where they join. On, all of them sample the same
-- blurred background and the glass matches wherever it joins; a panel over a
-- window frosts the wallpaper, not the window.
hl.layer_rule({ match = { namespace = "quickshell" }, xray = true })