Go to file
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
.github
core [Core] Improve CowData and Memory metadata alignment. 2024-02-05 17:30:02 +02:00
doc Merge pull request #87951 from AThousandShips/doc_link_fix 2024-02-05 14:54:33 +01:00
drivers Merge pull request #87795 from RandomShaper/d3d12_dont_leak_please 2024-02-02 12:04:25 +01:00
editor Check if history exists before discarding 2024-02-05 17:42:37 +01:00
main
misc Merge pull request #84885 from shana/vsproj-for-everyone 2024-02-03 23:17:18 +01:00
modules Merge pull request #87941 from AThousandShips/num_fix 2024-02-05 14:53:23 +01:00
platform [X11] Partial Fix Godot Editor and Project Manager steals focus on a window manager on Linux 2024-02-05 17:00:24 -06:00
scene Fix crash with PhysicsBody2D/3D::get_gravity with invalid state 2024-02-05 16:40:49 +01:00
servers Use '_v' shorthand for type traits and 'if constexpr' where appropriate 2024-02-02 15:43:21 +01:00
tests
thirdparty ThorVG: update from v0.12.3 to v0.12.4 2024-02-02 13:58:59 +01:00
.clang-format
.clang-tidy
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore Merge pull request #87878 from adamscott/emacs-gitignore 2024-02-03 23:21:01 +01:00
.mailmap
AUTHORS.md
CHANGELOG.md
CONTRIBUTING.md
COPYRIGHT.txt
DONORS.md
gles3_builders.py
glsl_builders.py
icon_outlined.png
icon_outlined.svg
icon.png
icon.svg
LICENSE.txt
LOGO_LICENSE.txt
logo_outlined.png
logo_outlined.svg
logo.png
logo.svg
methods.py
platform_methods.py
README.md
SConstruct
scu_builders.py
version.py

Godot Engine

Godot Engine logo

2D and 3D cross-platform game engine

Godot Engine is a feature-packed, cross-platform game engine to create 2D and 3D games from a unified interface. It provides a comprehensive set of common tools, so that users can focus on making games without having to reinvent the wheel. Games can be exported with one click to a number of platforms, including the major desktop platforms (Linux, macOS, Windows), mobile platforms (Android, iOS), as well as Web-based platforms and consoles.

Free, open source and community-driven

Godot is completely free and open source under the very permissive MIT license. No strings attached, no royalties, nothing. The users' games are theirs, down to the last line of engine code. Godot's development is fully independent and community-driven, empowering users to help shape their engine to match their expectations. It is supported by the Godot Foundation not-for-profit.

Before being open sourced in February 2014, Godot had been developed by Juan Linietsky and Ariel Manzur (both still maintaining the project) for several years as an in-house engine, used to publish several work-for-hire titles.

Screenshot of a 3D scene in the Godot Engine editor

Getting the engine

Binary downloads

Official binaries for the Godot editor and the export templates can be found on the Godot website.

Compiling from source

See the official docs for compilation instructions for every supported platform.

Community and contributing

Godot is not only an engine but an ever-growing community of users and engine developers. The main community channels are listed on the homepage.

The best way to get in touch with the core engine developers is to join the Godot Contributors Chat.

To get started contributing to the project, see the contributing guide. This document also includes guidelines for reporting bugs.

Documentation and demos

The official documentation is hosted on Read the Docs. It is maintained by the Godot community in its own GitHub repository.

The class reference is also accessible from the Godot editor.

We also maintain official demos in their own GitHub repository as well as a list of awesome Godot community resources.

There are also a number of other learning resources provided by the community, such as text and video tutorials, demos, etc. Consult the community channels for more information.

Code Triagers Badge Translate on Weblate TODOs