Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected blur behavior and graphical artifacts for translucent windows #9474

Closed
6 tasks done
TheKoTech opened this issue Feb 23, 2025 · 3 comments
Closed
6 tasks done
Labels
bug Something isn't working

Comments

@TheKoTech
Copy link

TheKoTech commented Feb 23, 2025

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

Probably not a regression / I don't remember it happening before

System Info and Hyprland Version

System/Version info
Hyprland 0.47.2 built from branch  at commit 882f7ad7d2bbfc7440d0ccaef93b1cdd78e8e3ff  (version: bump to 0.47.2).
Date: Sun Feb 2 00:47:17 2025
Tag: v0.47.2, commits: 5767
built against:
 aquamarine 0.7.2
 hyprlang 0.6.0
 hyprutils 0.5.0
 hyprcursor 0.1.11
 hyprgraphics 0.1.2


no flags were set


System Information:
System name: Linux
Node name: welnyr
Release: 6.13.4-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Sat, 22 Feb 2025 00:37:05 +0000


GPU information: 
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116 [GeForce GTX 1660 Ti] [10de:2182] (rev a1) (prog-if 00 [VGA controller])
NVRM version: NVIDIA UNIX x86_64 Kernel Module  570.86.16  Fri Jan 24 21:25:51 UTC 2025


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:

Description

I have 3 applications: kitty, vesktop, obsidian. All 3 of them have the same black 70% transparent background. In hyprland.conf I enable shadow and blur decorations.

Kitty and Vesktop windows correctly render everything behind them - blur is applied, everything is fine. Obsidian window has nothing behind it - no other tiling windows, no blur.

Opening fuzzel on top of Obsidian causes graphical artifacts and sometimes the mouse leaves a trail of black boxes.

Resizing the window makes it render blur and windows behind it correctly for 1 frame, after which it resets back to its normal glitchy state.

What I tried to fix this:

  1. Reboot / reload. No effect
  2. Downgrade to hyprland 0.46.0.r115.ga6b26371-1. No effect.
  3. Run obsidian without --ozone-platform-hint=auto flag. No effect.
  4. Set decoration:blur:new_optimizations to true. No effect.

How to reproduce

  1. Install obsidian: paru -Syu obsidian or yay -Syu obsidian
  2. Install "Electron Window Tweaker", version is 1.0.8 at the time of writing
  3. By any means make the background transparent. You can use my CSS snippet by applying it in Obsidian > Settings > Appearance > CSS snippets. Change the file extension from .txt to .css to make it work.
  4. Run obsidian with /usr/bin/obsidian --ozone-platform-hint=auto or obsidian --ozone-platform-hint=auto
  5. Resize the window, set it floating, move it on top of other windows

Attach not paste

  • I understand that all text files must be attached, and not pasted directly. If not respected, this issue will likely get closed as spam

Checklist of files to include below

  • Hyprland config - hyprctl systeminfo -c (always include)
  • Crash report (always include in case of crash)
  • Video (always include in case of a visual bug)
  • Logs (might contain useful info such as errors)

Additional info & File uploads

hyprland_config_dump.txt

2025-02-23.19-13-38.mp4

On the screenshot below, I have 4 windows: kitty & vesktop tiled on the left and right, another kitty window floating above both of them, obsidian floating on top

Image

You can notice that every window renders correctly except for Obsidian - background behind it is not blurred for both floating and tiling windows, tiling windows do not render behind it at all

@TheKoTech TheKoTech added the bug Something isn't working label Feb 23, 2025
@nnyyxxxx
Copy link
Contributor

By any means make the background transparent. You can use my CSS snippet by applying it in Obsidian > Settings > Appearance > CSS snippets. Change the file extension from .txt to .css to make it work.

why

Image

@TheKoTech
Copy link
Author

TheKoTech commented Feb 23, 2025

Reason:

70% background opacity:

Image

70% window opacity:

Image

Background opacity keeps content opacity at 100% or whatever you set it to be. Window opacity also affects content opacity, which reduces readability.

But, funnily enough, setting a window rule like below actually fixes the issue:

windowrulev2 = opacity 0.9999, class:^(obsidian)$

Image

I wouldn't call that an actual fix though, more of a temporary workaround

@vaxerski
Copy link
Member

that's an application bug, a common one as well on chromium. Chromium reports itself as opaque. Per-spec:

Image

@vaxerski vaxerski closed this as not planned Won't fix, can't repro, duplicate, stale Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants