YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
4.12k stars 123 forks source link

Rounded corners don't apply right away in some cases #782

Open ModWorx opened 2 weeks ago

ModWorx commented 2 weeks ago

No rounded corners on screens, even "prefer-no-csd" is uncomment and window rules set.

System Information

YaLTeR commented 2 weeks ago

Do you still not get rounded corners after moving around a little bit and spawning new windows? I know there's some sort of damage bug currently where going from not rounded to rounded does not apply immediately.

What's your window rule? You should do this:

window-rule {
    geometry-corner-radius 12
    clip-to-geometry true
}
ModWorx commented 2 weeks ago

Still no rounded corners when moving around or spawning new windows.

The window rule is what you replied.

YaLTeR commented 2 weeks ago

Show a screenshot?

ModWorx commented 2 weeks ago

afbeelding

YaLTeR commented 2 weeks ago

Could you also attach your full config?

ModWorx commented 2 weeks ago

config.txt

YaLTeR commented 2 weeks ago

That looks fine. Strange. Could you try adding border { off; } into the same window rule to see if it goes into effect?

ModWorx commented 2 weeks ago

I got rounded corners, but i adjusted the radius several times ( making it smaller, and then increasing again), and know it seems to work.

Geplakte afbeelding (3)

YaLTeR commented 2 weeks ago

Gonna guess it's the damage issue that I mentioned.

SofusA commented 1 week ago

I have the same issue on fedora 40 and 41 with both nvidia and amd gpu.

Rounded corners are applied first overflow of windows. And then it will keep working with no issues.

Let me know if I can help debugging.

BRS5672023 commented 1 week ago

I've also encountered with this issue on archlinux, but only on my desktop, and limited to the case of launching a kitty terminal at first (if say, I launch chromium right away, it will have a rounded corner)..

But it seems to have no reason that this does not show up on my laptop, with a radeon 780m gpu (my desktop is also having an rdna3 gpu, 7800xt).

Well, it seems that the issue may related to the scaling of output, which only occur when scale is set to 1