Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor never releases focus when "Save on focus loss" is active (DisplayServer regression) #61875

Closed
jgillich opened this issue Jun 10, 2022 · 7 comments

Comments

@jgillich
Copy link
Contributor

Godot version

b36447f

System information

Fedora Silverblue 36, Ryzen 2400G

Issue description

When "Save on focus loss" is active, editor instantly grabs focus through the save popup when switching to another application.

2022-06-10.07-43-51.mp4

Steps to reproduce

See above

Minimal reproduction project

No response

@Chaosus Chaosus added this to the 4.0 milestone Jun 10, 2022
@Calinou Calinou changed the title Editor never releases focus when "Save on focus loss" is active Editor never releases focus when "Save on focus loss" is active (DisplayServer regression) Jun 10, 2022
@Calinou
Copy link
Member

Calinou commented Jun 10, 2022

Can you reproduce this after enabling Single Window Mode in the Editor Settings then restarting the editor?

@jgillich
Copy link
Contributor Author

@Calinou I can not

@Rindbee
Copy link
Contributor

Rindbee commented Dec 29, 2022

It should be the popup of the save progress bar that made the editor regain focus.

@akien-mga
Copy link
Member

akien-mga commented Feb 22, 2023

I don't reproduce the issue anymore on 4.0 RC 3, it might have been fixed by #72439? @bruvzg

On the other hand each time there's a focus loss, these errors are printed:

ERROR: Parent node is busy setting up children, `add_child()` failed. Consider using `add_child.call_deferred(child)` instead.
   at: add_child (scene/main/node.cpp:1136)
ERROR: Condition "!is_inside_tree()" is true.
   at: popup_centered (scene/main/window.cpp:1456)

I wonder if #73365 would fix that one too.

Edit: Opened #73765 for that bug.

@jgillich
Copy link
Contributor Author

Seems like the saving dialog doesn't appear anymore when auto-saving, not sure if #72439 did that. But the problem's resolved.

@akien-mga akien-mga modified the milestones: 4.1, 4.0 Feb 22, 2023
@Aeranuth
Copy link

Aeranuth commented Mar 16, 2024

Any progress on this bug? Still happening in 4.2. it always froze the editor if you create a new scene and lose focus. Once it pops the save window and you save the new scene, you cannot perform any action anymore.

It can be solved by enabling single window mode as mentioned above.

@Calinou
Copy link
Member

Calinou commented Apr 4, 2024

Still happening in 4.2. it always froze the editor if you create a new scene and lose focus. Once it pops the save window and you save the new scene, you cannot perform any action anymore.

This should be fixable by making Save on Focus Loss not save scenes that haven't been saved yet (and therefore require going through the same workflow as a "save as" operation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

6 participants