godotengine / godot

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

Popup window remains visible after alt+tab from editor in x11 #91450

Open francoa opened 4 months ago

francoa commented 4 months ago

Tested versions

System information

Godot v4.3.dev (f91db3dc5) - Ubuntu 20.04.6 LTS (Focal Fossa) - X11 - GLES3 (Compatibility)

Issue description

When alt-tab from the editor while having an open PopupMenu object, this Window remains visible, overlaying other windows unrelated to the editor. Might be related to https://github.com/godotengine/godot/issues/85403? Before-alt-tab After-alt-tab

Steps to reproduce

Minimal reproduction project (MRP)

test-project.zip

francoa commented 4 months ago

I have been working on a way to fix this issue. It involves sending a DisplayServerX11::WINDOW_EVENT_CLOSE_REQUEST event to the Focused Popup window whenever a FocusOut event is processed. I'm currently reading the Contribution Guide to follow the appropriate steps for submitting the proposal

Sauermann commented 4 months ago

It looks like #68856 is a potential duplicate.

AThousandShips commented 4 months ago

Both are probably functionally a duplicate of: