cosmic-comp icon indicating copy to clipboard operation
cosmic-comp copied to clipboard

Vs code no clickable

Open wiiznokes opened this issue 10 months ago • 5 comments

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.

wiiznokes avatar Apr 01 '24 16:04 wiiznokes

I've had this issue with vscode and GitHub desktop, both electron/xwayland apps

ryanabx avatar Apr 04 '24 22:04 ryanabx

Maybe it only with nvidia driver, i don't have this issue on my laptop

wiiznokes avatar Apr 06 '24 01:04 wiiznokes

Nope, I'm not running nvidia

ryanabx avatar Apr 06 '24 01:04 ryanabx

You have to unstack and restack XWayland windows when they do this.

mmstick avatar Apr 06 '24 10:04 mmstick

You have to unstack and restack XWayland windows when they do this.

That don't fix it for me

wiiznokes avatar Apr 06 '24 16:04 wiiznokes

Here's a workaround for VS Code to enable Wayland support.

  1. 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/
  1. 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
  1. Create an alias for code in your ~/.bashrc
alias code='code --enable-features=UseOzonePlatform --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto'

mmstick avatar May 09 '24 13:05 mmstick