godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.23k stars 20.23k forks source link

Problems with right clicks in the code editor #95418

Open Torguen opened 1 month ago

Torguen commented 1 month ago

Tested versions

v4.3.rc3.official [03afb92ef]

System information

w10 64

Issue description

As you can see in the video, the first right-click appears to be useless, so the second right-click will open the context menu. Every time I click I do it on a different document, I never click twice in a row on the same document, this is to highlight this behavior even more and so that it can be clearly seen that the first click is lost.

This also happens with the left button. The error: If you open the context menu and then select another document to display help, the first click will be lost, you will have to make a second click.

This also happens in the code editor. Especially with "single window" mode activated. The initial right click will work but the second one is completely lost and inactive, you will not be able to right click again in the code editor.

This does not happen in the function selection list and every right click you make on a function, the editor will immediately move to the function without any loss of clicks.

https://github.com/user-attachments/assets/d3471f39-fdc9-478d-8fed-ab2db53cfd78

I don't know if this has a purpose or is a bug. What I do know is that this does not happen in Windows, for example when it shows the context menu of the files, it is enough to make a single right click on each file, it will only be necessary to make one click to show the context menu of any file even if it is already there is a menu displayed.

Here you can see

https://github.com/user-attachments/assets/634ea7b1-7d66-42ab-9b3e-b571f73ea793

Steps to reproduce

See the vídeo, Right click each time on a new document and you can see that alternatively, one of the clicks is lost and does nothing.

Minimal reproduction project (MRP)

...

Giganzo commented 1 month ago

Does it happen in single window mode?

Torguen commented 1 month ago

In single window mode simply the second click is totally useless. Once the context menu appears, the second click has absolutely no effect.

https://github.com/user-attachments/assets/658a333c-df2b-425a-82f3-6337046c8f68

KoBeWi commented 1 month ago

Related to #94930