Windowrule 'xray 0' forces opaque window
Hyprland Version
System/Version info
Hyprland, built from branch main at commit 2ead1fd22103ce065661555513bace5897083ded (virtual-keyboard: emit event before finishing keyboard).
Date: Sat May 18 05:07:33 2024
Tag: v0.40.0-111-g2ead1fd2, commits: 4717
flags: (if any)
System Information:
System name: Linux
Node name: arch
Release: 6.9.1-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Fri, 17 May 2024 16:56:38 +0000
GPU information:
2d:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6600/6600 XT/6600M] [1002:73ff] (rev c1) (prog-if 00 [VGA controller])
os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo
plugins:
Bug or Regression?
Bug
Description
Using a config with xray=true and then using a windowrule with xray 0 on a window with a transparent background results in that window being completely opaque.
How to reproduce
- Use the below settings in your hyprland config to enable blur and xray, and to disable blur on a specific window of your choice.
decoration {
blur {
enabled = true
xray = true
}
}
windowrulev2 = xray 0,class:^(kitty)$
- Edit the background opacity of your window of choice to be below 1.0 (eg.
background_opacityin~/.config/kitty/kitty.conf - Open the window
Crash reports, logs, images, videos
Uhhh. When I do this it makes my windows fully translucent?
decoration {
blur {
enabled = true
xray = true
}
}
windowrulev2 = opacity 0,class:^(kitty)$
windowrulev2 = xray 0,class:^(kitty)$
And when I leave opacity above 0 like at .85 its still transparent, just not as much so?
Can you provide your full config?
And what is the behavior you expect?
Sorry I should clarify, the opacity needs to be set in the application not the hyprland config. So for kitty it would be background_opacity 0.85 in ~/.config/kitty/kitty.conf.
Hello there!
This issue has been closed, as we are moving from issues to discussions. More about this can be found here and in #9854.
Firstly, please make sure this issue is still relevant in latest Hyprland. If so, we ask you to open a discussion (please read the discussion guidelines first, in the pinned post)
Thank you for your understanding!