wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

blur: toggling blur back on doesn't show until the window redraws

Open kirodubes opened this issue 1 month ago • 2 comments

Wayfire version: 0.11.0 (Arch Linux package wayfire 0.11.0-1) GPU: NVIDIA GeForce RTX 2060, nvidia-open-dkms 615.78.08, kernel 7.2

What happens

With blur enabled and a mouse-button toggle bound ([blur] toggle = <super> <alt> BTN_MIDDLE), toggling blur off on a translucent window takes effect immediately, but toggling it back on does not show until the window redraws. The window stays sharp until you type in it, move it, or something else repaints it; then the blur appears.

Steps to reproduce

  1. [blur] enabled with blur_by_default = type is "toplevel" and toggle = <super> <alt> BTN_MIDDLE.
  2. Open a translucent terminal (Alacritty with opacity < 1): the desktop behind it is blurred.
  3. Super+Alt + middle-click the terminal: the blur goes away at once (expected).
  4. Super+Alt + middle-click it again and leave the terminal idle: it stays sharp.
  5. Type a character in the terminal, or move the window a little: now the blur is back.

Expected

The blur shows right after step 4, the same way removing it shows right after step 3.

Notes

In plugins/blur/blur.cpp (v0.11.0) the toggle callback does the right thing (pop_transformer() when a blur_node_t is present, add_transformer() otherwise), so the blur node is added; it looks like adding the transformer does not schedule a repaint/damage of the view, while removing it does. Related but different from #1556 (that one was a keyboard binding on this button option).

kirodubes avatar Oct 23 '26 06:10 kirodubes

Steps to reproduce

  1. [blur] enabled with blur_by_default = type is "toplevel" and toggle = <super> <alt> BTN_MIDDLE.
  2. Open a translucent terminal (Alacritty with opacity < 1): the desktop behind it is blurred.
  3. Super+Alt + middle-click the terminal: the blur goes away at once (expected).
  4. Super+Alt + middle-click it again and leave the terminal idle: it stays sharp.
  5. Type a character in the terminal, or move the window a little: now the blur is back.

I tested using these steps but the expected happens; I cannot reproduce. I would recommend checking if the latest git version of wayfire has the same problem. Here is the wayfire --version string:

$ wayfire --version
0.12.0-e91ba81d (Oct 26 2026) branch master wlroots-0.20.2

soreau avatar Oct 26 '26 20:10 soreau

Thanks. I installed wayfire-git (0.12.0-e91ba81d, wlroots 0.20.2) and the blur now comes back immediately on the second toggle, both on Intel graphics and on an RTX 2060 with nvidia-open. Fixed on master, closing.

kirodubes avatar Oct 27 '26 03:10 kirodubes