From 131addecadff9dd86d9a257e0d32ba25dea44f17 Mon Sep 17 00:00:00 2001 From: Sn3aky <167647965+Sn3akyy1@users.noreply.github.com> Date: Tue, 10 Nov 2026 12:09:04 +0100 Subject: [PATCH] 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 --- support/hypr/modules/layerrules.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/support/hypr/modules/layerrules.lua b/support/hypr/modules/layerrules.lua index 636d88e..c0b53eb 100644 --- a/support/hypr/modules/layerrules.lua +++ b/support/hypr/modules/layerrules.lua @@ -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 })