YaLTeR / niri

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

Rounded Corners of layer shell components not showing after update #502

Open mohammedbilalns opened 3 days ago

mohammedbilalns commented 3 days ago

An hour ago, I updated Niri from 0.1.6 to the version in chaotic-aur (0.1.7, v0.1.7-3-gc681198). Now, the layer shell components like Waybar and Wofi aren't showing their rounded corners, even though the screenshot shows them with rounded corners.

photo screenshot

Is this the version that supports fractional scaling?, I tried to set fractional scaling in the config, but it isn't working.

System Information

YaLTeR commented 3 days ago

Waybar and Wofi

Could you check using the following bind? Mod+Shift+Ctrl+O { debug-toggle-opaque-regions; } If they show up as blue, then they are not setting their opaque region correctly, which is an application bug.

Is this the version that supports fractional scaling?, I tried to set fractional scaling in the config, but it isn't working.

Yeah, should work.

mohammedbilalns commented 3 days ago

Could you check using the following bind? Mod+Shift+Ctrl+O { debug-toggle-opaque-regions; } If they show up as blue, then they are not setting their opaque region correctly, which is an application bug.

2024-07-02T22:17:32,608856676+05:30 2024-07-02T22:17:41,678692589+05:30 2024-07-02T22:17:48,887412695+05:30

Is this the version that supports fractional scaling?, I tried to set fractional scaling in the config, but it isn't working. Yeah, should work.

I tried setting the scale to 1.2 and 1.5 in the config. Is there something else I should do?

YaLTeR commented 3 days ago

Yeah, you can see it's all blue, including the corners. It's a client bug, they're setting the opaque region incorrectly.

I tried setting the scale to 1.2 and 1.5 in the config. Is there something else I should do?

No, just set that for the correct output (and make sure you uncomment the output node).

mohammedbilalns commented 3 days ago

Fractional scaling is working fine now. I forgot to uncomment the output node as you said.

mohammedbilalns commented 1 day ago

The screen becomes fully red for a fraction of a second when activating Swaylock. Is this related to the issue?

YaLTeR commented 1 day ago

That is not related, that is #119

lpnh commented 8 hours ago

The screen becomes fully red for a fraction of a second when activating Swaylock. Is this related to the issue?

I "solved" this red screen issue by calling niri do-screen-transition action before running swaylock, like this:

#!/usr/bin/env nu

niri msg action do-screen-transition --delay-ms 300

swaylock -f

Using the script in niri config.kdl file:

Pause { spawn "~/.config/nushell/scripts/lock-screen.nu"; }

You can adjust the --delay-ms value to your preference. I use an image as the lock screen, and this adds a very nice smooth transition. I plan to keep using it even after the fix.