godotengine / godotengine/godot

Steam client breaks Godot X11

Open
#115,676 2 comments 2 reactions 0 assignees View on GitHub
bug needs testing platform:linuxbsd topic:platforms
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

v4.6.stable.official [89cea1439]

### System information

linux, x11, arch, awesome

### Issue description

When I launch the game and then start Steam for testing, I get X11 errors. This likely happens due to focus differences, and Godot was expecting something else. I am also using GodotSteam, but I don’t see this as its specific problem.

### Steps to reproduce

```
ERROR: Unhandled XServer error: BadWindow (invalid Window parameter)
Major opcode of failed request: 18
Serial number of failed request: 0
Current serial number in output stream: 360789
at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:1310)
ERROR: Unhandled XServer error: BadWindow (invalid Window parameter)
Major opcode of failed request: 25
Serial number of failed request: 0
Current serial number in output stream: 360790
at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:1310)
ERROR: Unhandled XServer error: BadWindow (invalid Window parameter)
Major opcode of failed request: 18
Serial number of failed request: 0
Current serial number in output stream: 360805
at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:1310)
ERROR: Unhandled XServer error: BadWindow (invalid Window parameter)
Major opcode of failed request: 25
Serial number of failed request: 0
Current serial number in output stream: 360806
at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:1310)
```

From what I can tell, these errors occur in response to Steam creating windows when it launches, and Godot has nothing to do with it, but reports the errors as a reaction. After the Steam client finishes loading, Godot stabilizes.

### Minimal reproduction project (MRP)

I think even a blank project with a window + opening the Steam client would reproduce it.

Contributor guide

Open the contributing guide

Research direction

Start with platform/linuxbsd/x11/display_server_x11.cpp around default_window_error_handler at line 1310, then reproduce the report using a blank project and Steam on Linux/X11. Trace the BadWindow errors while Steam creates windows and determine the expected behavior; done means the issue is resolved or clearly confirmed as an external X11/Steam condition without spurious Godot errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.