When using a tile manager such as i3 Godot will tell the tile manager it has focus even when it shouldn't.
An example: Would be moving a tile to the left/right of Godot, every application I have used with i3 for ~10 years never grabs focus back onto itself and always respects this, but Godot will instantly window focus itself.
Another example: Have Godot focus, but then use SUPER+ENTER (common) to open up a terminal, the tile manager will say it has focused the terminal, but Godot still maintains context and the typing will go to itself in the editor.
Another example: Show scratchpad in i3, which will focus that window, but again Godot will keep the key inputs on itself even though the window isn't focused.
This is VERY annoying. No other application in 10 years of using this tile manager has ever done this.
Minimal reproduction project (MRP)
Any godot project. Just move a tile that has any indirect interactions with Godot.
Tested versions
System information
Ubuntu 22.04 - v4.2.stable.official [b09f79]
Issue description
Godot doesn't respect window focus (i3wm, i3, tile manager)
Steps to reproduce
When using a tile manager such as i3 Godot will tell the tile manager it has focus even when it shouldn't.
An example: Would be moving a tile to the left/right of Godot, every application I have used with i3 for ~10 years never grabs focus back onto itself and always respects this, but Godot will instantly window focus itself.
Another example: Have Godot focus, but then use SUPER+ENTER (common) to open up a terminal, the tile manager will say it has focused the terminal, but Godot still maintains context and the typing will go to itself in the editor.
Another example: Show scratchpad in i3, which will focus that window, but again Godot will keep the key inputs on itself even though the window isn't focused.
This is VERY annoying. No other application in 10 years of using this tile manager has ever done this.
Minimal reproduction project (MRP)
Any godot project. Just move a tile that has any indirect interactions with Godot.