Browse Source

SDL_x11dyn.h: include XInput2.h also for Xfixes

Fixes https://github.com/libsdl-org/SDL/issues/7343
Ozkan Sezer 2 years ago
parent
commit
da6bce4f76
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/x11/SDL_x11dyn.h

+ 1 - 1
src/video/x11/SDL_x11dyn.h

@@ -52,7 +52,7 @@
 #if SDL_VIDEO_DRIVER_X11_XDBE
 #if SDL_VIDEO_DRIVER_X11_XDBE
 #include <X11/extensions/Xdbe.h>
 #include <X11/extensions/Xdbe.h>
 #endif
 #endif
-#if SDL_VIDEO_DRIVER_X11_XINPUT2
+#if SDL_VIDEO_DRIVER_X11_XINPUT2 || SDL_VIDEO_DRIVER_X11_XFIXES
 #include <X11/extensions/XInput2.h>
 #include <X11/extensions/XInput2.h>
 #endif
 #endif
 #if SDL_VIDEO_DRIVER_X11_XFIXES
 #if SDL_VIDEO_DRIVER_X11_XFIXES