-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Godot Editor Stealing Focus From Game #74587
Comments
Assuming this is platform-specific as windowing issues often are (and I don't reproduce on Linux). CC @bruvzg |
I am pretty sure the error only happens if you disable Window>Size>Resizable, at least with Fullscreen/exclusive fullscreen, didn't test with the other modes. But even in that case, focus is lost for half a second (the times it decides to lose focus, it doesn't happen all the time). |
I had this problem consistently in Windows, and can confirm that re-enabling display/window/size/resizable fixes the issue. |
Seeing a similar issue in Arch Linux with LXDE and the Godot IDE itself. VERSIONS: godot4-window-focus-bug.mp4 |
Seeing this on Qtile as well. I have firefox fullscreen on one monitor and godot fullscreen on a 2nd monitor. If I click into the address bar on ff and start typing, everything goes to godot. If I toggle floating on the ff window and then try the same thing, it works normally again. |
Same problem as @tribly , and has been happening for a long time in 4.x. Switching workspaces in Regolith (Ubuntu with out-of-the-box i3) is fine, but trying to switch to a tiled adjacent window is often impossible and requires actually creating a window specifically so that I can switch to it from the other direction. It seems to aggressively demand focus whenever it is even slightly resized by the window manager. 2023-04-26_21-16-05.mp4All of the things I do in that capture - resizing various tiled windows, moving to a different 'tab' which causes borders to no longer be drawn around Godot - cause it to receive a resize signal by the wm. And that seems to be what tells it to aggressively pull back focus, to the point of making it impossible for me to switch to other windows in some cases. Edit: Nevermind, just noticed the much-confirmed issue for this. I hope this can be sorted out at some point, unfortunately I don't have anywhere near the time to test it out in multiple wms 😕 |
just happened to me right now, I was using WASD to move and nothing happened, then I left clicked and everything worked, went back to the editor and had "wadsdsdsdawwswdasw" written there |
Echoing @stuartfulton Grabbing focus once did not seem to help, nor repeatedly. Behavior outside the editor also seemed affected. Using version 4.2. |
Godot 4.2, Windows 10, Same issue. I have to left-click on my game first. |
i am experiencing the same issue (focus stealing from all apps) |
Apparently it happens when "Resizeable" is unchecked in the project settings. #74619 has more info about it as well as a workaround. By the way, still an issue on 4.2.2. |
Same issue, but unlike #74619, my project had System information: Godot v4.2.2.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce MX130 (NVIDIA; 31.0.15.5222) - Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 Threads) |
Same issue here, I'm getting this logs:
|
Same problem. I have System information:
|
This also happens when the editor setting Player settings, for reference:
Software:
Raw system information paste:
|
What I would know if it also happens after export, i.e. if the window that's opened right before you launch exported game will also steal focus. If it does that, something is wrong with the engine itself, if it only steals focus in the editor though, something is funky within the editor. |
I have this issue with Linux Mint Cinnamon v20.3 and Godot v4.3. Project window settings are default apart from viewport width and height being set to smaller values and stretch mode set to viewport. |
Could this have the linux platform tag added too? Or should a new issue be made for similar linux issues? |
Godot version
4.0 Stable
System information
Windows 10
Issue description
After a game starts, the Godot Editor steals focus, sending keypresses to the editor, until I either Alt-Tab out and back into the game, or click with the mouse, anywhere in the window. (Fullscreen and Exclusive modes only)
Steps to reproduce
This happens in ALL my projects, even just now an empty test project I made, added a Character3D node, with the default movement controls, and the Character3D would not move until after I alt-Tabbed out and back in, OR until after I clicked somewhere in the window. All the keypresses I made before clicking appeared in the script editor.
I put print statements in all my input handlers in all my projects and confirmed that no keyboard inputs are ever registered until after an alt-tab or a click.
IMPORTANT: This issue does not happen with any other version of Godot, only 4.0 Stable. Input works perfectly in all previous versions, so I'm assuming it's not a hardware issue. This issue ONLY happens in Fullscreen and Exclusive Fullscreen modes and does not occur in Windowed modes. This issue happens in both Forward+ and Compatibilty mode.
Minimal reproduction project
project - Copy.zip
My current practice project (Trying out things that are different in Godot 4 for the first time, like CharacterBody3D)
The text was updated successfully, but these errors were encountered: