window-vibrancy icon indicating copy to clipboard operation
window-vibrancy copied to clipboard

MacOS apply_liquid_glass breaks window edges

Open vuolter opened this issue 1 month ago • 6 comments

Under MacOS with window-vibrancy v0.7.1, when the window get the focus, all corner edges are no longer aligned with the edge:

https://github.com/user-attachments/assets/c7e940d9-9f66-4d04-ba97-f355b18cf996

This happens with all the NSGlassEffectViewStyle (except apparently NSGlassEffectViewStyle:Clear).

Config issued as in the video:

apply_liquid_glass(&window, NSGlassEffectViewStyle::Regular, None, Some(26.0));

vuolter avatar Nov 14 '25 17:11 vuolter

What happens if you change Some(26.0) to None ? I think setting a corner radius only makes sense for undecorated windows.

FabianLars avatar Nov 14 '25 18:11 FabianLars

Changing to None with "decorations": true looks fine (ofc with the default corner radius), but if I disable decorations in the tauri conf, I get this result (regardless of the radius value):

Image

vuolter avatar Nov 14 '25 23:11 vuolter

I tried reverting to commit 990faf4 and the corners came back, so I guess the issue was introduced after that

vuolter avatar Nov 14 '25 23:11 vuolter

Hmm that sucks, I really hoped we could go with the simpler implementation :/

Last thing, can you enable tauri's unstable feature flag and check if anything changes for better or for worse?

FabianLars avatar Nov 15 '25 09:11 FabianLars

Try fixing this issue by moving the webview into the contentView of glass view: https://github.com/ahonn/window-vibrancy/commit/3d96494355340b426e15a785431f70f8ccdcf778

It works for me.

ahonn avatar Nov 16 '25 00:11 ahonn

Tested https://github.com/ahonn/window-vibrancy/commit/635f6ea54f9796ae658b4d5325d82541caf45ae8 and working fine on my end with custom radius 😃

vuolter avatar Nov 21 '25 23:11 vuolter