Browse Source

x11: Include the XTest header when needed

Fixes building when statically linking.

(cherry picked from commit fdc4f8fa390c872da17c21bdbe35ce4cf2da25d2)
Frank Praznik 2 months ago
parent
commit
9178d14519
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/video/x11/SDL_x11dyn.h

+ 3 - 0
src/video/x11/SDL_x11dyn.h

@@ -71,6 +71,9 @@
 #ifdef SDL_VIDEO_DRIVER_X11_XSHAPE
 #include <X11/extensions/shape.h>
 #endif
+#ifdef SDL_VIDEO_DRIVER_X11_XTEST
+#include <X11/extensions/XTest.h>
+#endif
 
 #ifdef __cplusplus
 extern "C" {