swayfx
swayfx copied to clipboard
m1 NixOS asahi - Borders are a bit messed up
on NixOS asahi, Blur is a bit broken graphically, and swayfx borders aren't rendered correctly.
See comparison of swayfx window border rounded vs waybar rounded border radius;
swayfx version 0.4 (based on sway 1.9.0) NixOS 24.05
I've additionally enabled asahi experimental gpu driver, so rendering these things should be possible. Maybe its an anti-aliasing issue?
should be fixed once we use the scenefx border impl in https://github.com/wlrfx/scenefx/pull/59
Q: is this still present? We switched to the scenefx border impl in #367
Yes, the issue is still present. However, it depends on if I’m updated to using what you are using. What version is this fixed on? I’m using nixos on m1. I can check
By the way, the issue I have now is a bit different. Sometimes, window corners have black backgrounds. I can’t totally tell about the resolution. Seems better.
Hmm, seems like a blending issue. Do you have any way to reproduce the black backgrounds?
I will give a much more helpful reply when I’m at my machine :-)
Okii Dokiee.
I'm on nixos 6.13.5-asahi on 2020 M1 Macbook Air.
I've got NixOS flakes, with
sway --version
swayfx version 0.5 (based on sway 1.10.1)
This is what it looks like today. The top is waybar, the bottom is swayfx on Alacritty window.
Also, if I use my toggle-gaps shell script, it will show a black bar. I think that's probably just my second alias waybar now that I think about it:
It goes away after moving mouse over it.
*EDIT: yeah definitely just a black line caused by Waybar. Not swayfx.
Are you using anti-aliasing at all?
Mavcbooks have retina display. Everything is scaled up 2x, so that elements on the screen would be extra crisp.
I've set the scaling factor of sway to 2x, because at native every element is too small to see.
Is swayfx not accounting for scaling?
Mavcbooks have retina display. Everything is scaled up 2x, so that elements on the screen would be extra crisp.
I've set the scaling factor of sway to 2x, because at native every element is too small to see.
Is swayfx not accounting for scaling?
Swayfx accounts for scaling. From discussions on discord it seems this is either a GL precision issue (in scenefx), or a potential bleeding edge mesa issue. Some users fixed this by using an earlier mesa version, but it's likely otherwise a floating point precision issue in scenefx
Im getting a similar issue on Arch - It only started in the last few days after an update (I am not sure of what specifically).
the top-left border looks a bit weird for me too, i'm using arch linux on a thinkpad t480 with normal scaling and 1920x1080
the top-left border looks a bit weird for me too, i'm using arch linux on a thinkpad t480 with normal scaling and 1920x1080
what version are you running? Long story short this was a gles2 issue that was resolved by updating our shaders to support gles3. The newest version of swayfx shouldn't have this issue
These are likely fixed on asahi macs as well, can anyone confirm if this is still present in the most recent release? I don't have the hardware to confirm
the top-left border looks a bit weird for me too, i'm using arch linux on a thinkpad t480 with normal scaling and 1920x1080
what version are you running? Long story short this was a gles2 issue that was resolved by updating our shaders to support gles3. The newest version of swayfx shouldn't have this issue
yeah, the version on the cachyos repos is old. installing the one on AUR solves my issue.
This should be fixed in the most recent release, please re open if that isn't the case! Thanks everyone
This now looks nearly perfect. There is a single missing pixel only showing on the top-left corner with my config.
This now looks nearly perfect. There is a single missing pixel only showing on the top-left corner with my config.
Awesome! This is actually a known issue, will be fixed for next release