SDL: SDL_x11events.c: fix build if Xinput2 is not available after 3dfc3b4c8

From 693c75e36eba5293cfc55806c5f1ae8827452423 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 26 Mar 2024 11:56:02 +0300
Subject: [PATCH] SDL_x11events.c: fix build if Xinput2 is not available after
 3dfc3b4c8

---
 src/video/x11/SDL_x11events.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/video/x11/SDL_x11events.c b/src/video/x11/SDL_x11events.c
index 2e3a4eb74a762..02b7822cf54be 100644
--- a/src/video/x11/SDL_x11events.c
+++ b/src/video/x11/SDL_x11events.c
@@ -2036,7 +2036,9 @@ void X11_PumpEvents(SDL_VideoDevice *_this)
     }
 
     if (data->xinput_hierarchy_changed) {
+#ifdef SDL_VIDEO_DRIVER_X11_XINPUT2
         X11_InitPen(_this);
+#endif
         X11_Xinput2UpdateDevices(_this, SDL_FALSE);
         data->xinput_hierarchy_changed = SDL_FALSE;
     }