cosmic-comp
cosmic-comp copied to clipboard
Vs code no clickable
I noticed that after some time, vs code become not clickable, at least some part of the windows. This happen in both floating and tilling. It's only the bottom left part that is not clickable. Curiously, the bug seems to appears only when the window is on the left side of my screen.
I've had this issue with vscode and GitHub desktop, both electron/xwayland apps
Maybe it only with nvidia driver, i don't have this issue on my laptop
Nope, I'm not running nvidia
You have to unstack and restack XWayland windows when they do this.
You have to unstack and restack XWayland windows when they do this.
That don't fix it for me
Here's a workaround for VS Code to enable Wayland support.
- Copy VS Code's
code.desktop
file your your home folder
mkdir -p ~/.local/share/applications
cp /usr/share/applications/code.desktop ~/.local/share/applications/
- Edit the
Exec
line to the following
Exec=/usr/share/code/code --enable-features=UseOzonePlatform --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto --unity-launch %F
- Create an alias for code in your
~/.bashrc
alias code='code --enable-features=UseOzonePlatform --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto'