microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.66k stars 29.44k forks source link

Behavior changed for middle click window title in gnome #231292

Open lonix1 opened 1 month ago

lonix1 commented 1 month ago

ENVIRONMENT: linux ubuntu 24.04 gnome 46.0 (with wayland) vscode 1.94.2

WHAT USED TO WORK: I use the mouse middle click (on a window's titlebar) to lower the window - so I can easily cycle through open windows. This setting is set via the shell, or the gnome tweaks tool.

I did not set "window.titleBarStyle".

HOW IT WORKS NOW: That changed in either the latest update or when upgrading to gnome 46. It doesn't honor that gnome setting anymore. So a middle click on the vscode titlebar does nothing.

This is identical to a bug from a few years ago, but since resolved. Maybe there's a similar resolution this time too.

benibenj commented 1 month ago

@deepak could this be caused by an electron update?

ak2766 commented 1 month ago

Thanks for raising this one. I asked the question about it on Launchpad but it expired with no responses: https://answers.launchpad.net/ubuntu/+question/818820

When I boot to Wayland, it works as expected. However, I need to use Gnome as some apps as stated in that question do not work on Wayland.

Hopefully raising the bug here will get better traction...

lonix1 commented 1 month ago

Thanks for adding your use case. For me, it doesn't work on Wayland. (Haven't tried in X11 yet).

Update: it doesn't work in X11 either.

lonix1 commented 1 week ago

@ak2766 I opened a bug issue at the electron repo. Please chime in there if you have repro ideas.

deepak1556 commented 1 week ago

If this is a confirmed regression, it would help to know which change caused it. We maintain a node.js based CLI tool vscode-bisect that automatically downloads and runs previous VS Code insiders and asks for each build if the issue reproduces. It takes up to 8 steps to find exactly the build that caused the regression.

Steps:

Thanks!

ak2766 commented 1 week ago

Looks like this is a confirmed bug in Gnome: https://gitlab.gnome.org/GNOME/mutter/-/issues/2778