microsoft / vscode

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

Linux: context menu runs action under mouse when opened - New in 1.92.0 #224743

Open powellnorma opened 2 months ago

powellnorma commented 2 months ago

Does this issue occur when all extensions are disabled?: Yes/No

So I am aware of https://github.com/microsoft/vscode/issues/113175 - However I only have this problem when using 1.92.0 - Downgrading to 1.91.1 fixes it. I noticed the context-menu now "fades in", whereas before it just appeared (with no animations). Were there some changes in 1.92.0 that could cause this?

Steps to Reproduce:

  1. Use 1.92.0
  2. In file browser, right-click somewhere - It opens the context-menu in such a way, that on release of the right-click it immediately executes the entry that's below the cursor. Optimally, the context-menu would appear with an offset such that this does not happen
SiebelsTim commented 2 months ago

I have the same behaviour. Furthermore, right-clicking shortly shows the menu and immediately closes the menu. Probably because releasing the right-click tries to select something. However, I cannot reproduce this on every click, few times it works. I think it depends on where you click.

Peek 2024-08-05 09-44

dancysoft commented 2 months ago

Same. I've been using VS Code on Linux without problems for years but as of 1.92.0 it exhibits the very dangerous/disruptive behavior of executing whatever command happens to be under the mouse when I right-click and release.

spech66 commented 2 months ago

I have the same Problem with the latest update. Sometimes the menu stays open but most of the time the item directly on the mouse position is selected immediately (in the code view as well selecting things like rename oder find all references, ...). Downgrade to 1.91.1 fixes the problem.

Kernel 5.15.0-113-generic Ubuntu 20.04 Using I3 as Desktop Environment.

0x07dev commented 2 months ago

Same on the 1.92.0 and 1.92.1 1.91.1 has no problems. Kernel 6.1.0, Debian 12.1, KDE Plasma 5.27.5

MerlijnElderhuis commented 2 months ago

Same here. 1.91.1 has no problem.

SiebelsTim commented 2 months ago

@sbatten can we add the "new release" label again?

mwilliamson commented 2 months ago

I think this is related to https://github.com/microsoft/vscode/issues/224515, which provides a workaround of changing the setting "Window: Title Bar Style" to "custom" (although that does change the title bar).

deefdragon commented 1 week ago

Its related, but I think also somewhat different. I encounterd this issue previously, but fixed it (don't remember how, IE if I followed the fix mentioned in the other thread) several years ago. I recently upgraded my vscode, and have started encountering it once again.