godotengine / godot

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

Editor window moves on top of the game window when reimporting resources in the background #90940

Open passivestar opened 5 months ago

passivestar commented 5 months ago

Tested versions

v4.3.dev.custom_build [4a0160241]

System information

Godot v4.3.dev (4a0160241) - macOS 14.4.0 - Vulkan (Forward+) - integrated Apple M1 Max - Apple M1 Max (10 Threads)

Issue description

I mentioned it here but I'm opening an issue for it so that it doesn't get lost

When using the Import Resources When Unfocused editor setting, reimporting the assets makes the editor window move on top of the running game window (notice that it only goes on top of the game window, and not for example on top of the blender window):

https://github.com/godotengine/godot/assets/60579014/06ada90c-ef2f-44fc-b6cb-4228c81f1a3c

This is a problem because in order to be able to reimport assets while testing them in a running game using a single display, I need to change the minimum editor window size to (100,100) via an editor script to be able to move it out of the way (minimizing the editor window doesn't work either, it will just get maximized)

Steps to reproduce

  1. Enable the "Import Resources When Unfocused" editor setting
  2. Run the game
  3. Modify some external resource
  4. See that the editor jumps in front of the game window

Minimal reproduction project (MRP)

If you need a project with an external mesh and a blend file for testing, I have one in the MRP for this issue: https://github.com/godotengine/godot/issues/90659

Calinou commented 2 months ago

I can confirm this on 4.3.beta 92c8e87cd (Linux/X11).