Table of Contents
Last update: 09.05.2026.
On some Linux distributions, when using the SDL library in Wafl, an error message like this may be displayed:
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 25 (X_SendEvent)
Resource id in failed request: 0x1400009
Serial number of failed request: 9
Current serial number in output stream: 11
The problem is with the incorrect configuration of SDL. It should be
enough to install the libsdl2-dev package. Installing the
package will set the correct configuration of the library. After that,
the package can be removed, and the problems should not repeat.
sudo apt install libsdl2-dev
sudo apt remove libsdl2-dev