godotengine / godot

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

Editor window steals focus multiple times while launching #96994

Open KoBeWi opened 6 days ago

KoBeWi commented 6 days ago

Tested versions

4.4 dev2

System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 31.0.15.4633) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

Issue description

After #93064 the editor will show multiple progress dialogs while launching. Each time new dialog appears, the main window will steal focus, making it almost impossible to do anything while a project is loading. It's especially annoying during long reimports, because the window is focused multiple times with long intervals between operation.

The editor should not steal window focus while doing its background tasks. It's useless and disturbing.

Steps to reproduce

  1. Delete .godot folder for better result
  2. Open a medium/big project that takes a while to launch
  3. Minimize Godot and try to do something else
  4. Godot will keep interrupting whatever else you are trying to do

Minimal reproduction project (MRP)

N/A

Hilderin commented 6 days ago

This is linked the same problem as #90944 because the root cause is the Progress Dialog which steals the focus.