Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

blurred waybar + hyprpaper fails to update wallpaper behind waybar when no windows are present

Open shot-codes opened this issue 1 year ago • 7 comments
trafficstars

Hyprland Version

System/Version info
Hyprland, built from branch main at commit 1512b81126dd115f089fd21244692d92034c78f8 dirty (master: guard PNODE in roll*).
Date: Tue Jan 2 22:18:38 2024
Tag: v0.34.0-19-g1512b811

flags: (if any)


System Information:
System name: Linux
Node name: GLaDOS
Release: 6.6.9-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Tue, 02 Jan 2024 02:28:28 +0000


GPU information: 
00:02.0 VGA compatible controller [0300]: Intel Corporation Raptor Lake-P [Iris Xe Graphics] [8086:a7a0] (rev 04) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD107M [GeForce RTX 4060 Max-Q / Mobile] [10de:28a0] (rev a1) (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://bugs.archlinux.org/"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo


plugins:

Bug or Regression?

Bug

Description

I have enabled blurring on waybar, tested with both blurls and layerrule. I am using hyprpaper to change wallpapers when I change workspace. When I navigate between two workspaces that each have windows, the wallpaper is correctly updated behind waybar -- when I naviagte to a workspace that has no windows the wallpaper is not updated behind waybar. If I open a window in the empty space the background behind waybar corrects itself

How to reproduce

  • preload multiple images in hyprpaper
  • add layerrule/blurls for waybar
  • bind workspace navigation to change wallpaper with hyprctl hyprpaper wallpaper "" as per documentation
  • Use bind to switch between workspaces that have windows and no windows open

Crash reports, logs, images, videos

https://github.com/hyprwm/Hyprland/assets/43202406/c25b78e5-d97a-4bdf-b850-d272804b12f8

shot-codes avatar Jan 04 '24 16:01 shot-codes

kek

vaxerski avatar Jan 04 '24 20:01 vaxerski

patch.txt try

vaxerski avatar Jan 04 '24 20:01 vaxerski

Could this be related? I can't easily reproduce as it's random. It seems if I move the window e.g. Press meta and move with mouse it will go away, but then come back as it goes back to the same size as it was before I pressed those keys and moved it. Also, when my wallpaper changed it went away, I am using wpaperd with a slideshow for reference

I imagine something is getting out of sync perhaps and this is some kind of optimization? I was running Mistral AI 7bx8 on CPU which of course puts a lot of load on my CPU image

nonetrix avatar Feb 08 '24 21:02 nonetrix

it is an optimization. Why not try the patch?

vaxerski avatar Feb 09 '24 03:02 vaxerski

I might look into that later not sure how to apply it on NixOS but probably isn't too hard? Hopefully? Will it be upstreamed eventually?

nonetrix avatar Feb 09 '24 09:02 nonetrix

@nonetrix you can use this override:

wayland.windowManager.hyprland.package = pkgs.hyprland.overrideAttrs (old: {
  patches = (old.patches or []) ++ [
    (pkgs.fetchpatch {
      url = "https://github.com/hyprwm/Hyprland/files/13835169/patch.txt";
      hash = "";
    })
  ];
});

Change as appropriate for either the NixOS module/flake package.

The first time it will fail due to mismatched hashes. Copy the "got" hash that nix provides, and set the hash to that.

fufexan avatar Feb 09 '24 09:02 fufexan

@nonetrix you can use this override:

wayland.windowManager.hyprland.package = pkgs.hyprland.overrideAttrs (old: {
  patches = (old.patches or []) ++ [
    (pkgs.fetchpatch {
      url = "https://github.com/hyprwm/Hyprland/files/13835169/patch.txt";
      hash = "";
    })
  ];
});

Change as appropriate for either the NixOS module/flake package.

The first time it will fail due to mismatched hashes. Copy the "got" hash that nix provides, and set the hash to that.

I just have a shell alias to get the hash from a URL, just a nice tip. I'll look into that tomorrow though

nonetrix avatar Feb 09 '24 09:02 nonetrix

I fixed this issue by putting this layerrule in my hyprland.conf:

layerrule = xray,waybar

Makes sense considering Waybar needs to be able to update itself on background change.

POP303U avatar Mar 25 '24 16:03 POP303U

can you test today's git

vaxerski avatar Mar 25 '24 18:03 vaxerski

I fixed this issue by putting this layerrule in my hyprland.conf:

layerrule = xray,waybar

Makes sense considering Waybar needs to be able to update itself on background change.

I've been looking for this solution for a long time, thanks TT

miniMinn24 avatar Jun 08 '24 13:06 miniMinn24

This has been fixed for me

shot-codes avatar Jul 28 '24 07:07 shot-codes