EYHN / vscode-vibrancy

Enable Acrylic/Glass effect for your VS Code.
MIT License
559 stars 37 forks source link

[macOS] Effect disabled when window is not in focus #127

Open Mladja89 opened 2 years ago

Mladja89 commented 2 years ago

What the title said, is this normal to be disabled once the window is not in focus? 'Cause I really love the extension and it's the only annoying thing.

VS Code -v 1.62.3 macOS -v 12.0.1

surajmandalcell commented 2 years ago

Facing the same issue here, I have to alt-tab a lot and this gets real annoying

playduck commented 2 years ago

This is probably happening since BrowserWindow.options.visualEffectState is presumably set to the default value of followWindow. Changing this to active should fix this.

I've figured this out by looking at the electron docs (Just ctrl+f for visualEffectState).

Unfortunately I have no idea how to access the options object of a BrowserWindow using an extension or if changing it after its creating is even possible. I'd appreciate if anyone with any knowledge about electron and vscode extensions could chime in.

darmane commented 2 years ago

Hi! I'm facing the same issue... Any help?