godot/platform
Dalton Lang 8a2e4409e6 [X11] Partial Fix Godot Editor and Project Manager steals focus on a window manager on Linux
This is a workaround for the most critical portion of the WM focus bug
described in #68305. On some specific X11 WM configurations, the
editor's main window and any popups it creates will fight for focus,
which causes a total system lockup due to mouse and keyboard input being
stolen as well. Getting out of this infinite loop requires force
restarting the system.

It can be tested with the following shell script:

```bash
	!#/bin/sh

	godot4 &
	sleep 30
	pkill -x godot4
```

The workaround identified in #68305 is to remove the call to
XSetInputFocus in the ConfigureNotify event handler, so I have removed
the conditional block that calls this as well as the setup code above it
since there is no need to allocate the memory for the variables if they
won't be used in that call anymore.

This is just a hack and is not a complete fix for #68305. Multiple
developers are collaborating on a proper fix in the discussion in that
issue, but time is a valuable resource that no one has enough of, so I
am committing this workaround as a stop-gap to prevent the most critical
problem while we work on a full solution for the underlying cause.
2024-02-05 17:00:24 -06:00
..
android Merge pull request #84674 from m4gr3d/add_flag_to_run_scons_from_gradle 2024-01-29 23:24:05 +01:00
ios Add InputEventKey.location to tell left from right 2024-01-26 14:42:28 +01:00
linuxbsd [X11] Partial Fix Godot Editor and Project Manager steals focus on a window manager on Linux 2024-02-05 17:00:24 -06:00
macos [macOS] Check Vulkan SDK version when looking for MoltenVK libs. 2024-02-04 23:09:52 +02:00
web Merge pull request #87981 from adamscott/add-emscripten--sgl_enable_get_proc_address-linker-flag 2024-02-05 18:06:15 +01:00
windows Merge pull request #84885 from shana/vsproj-for-everyone 2024-02-03 23:17:18 +01:00
register_platform_apis.h
SCsub