We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 733335e commit 18195c5Copy full SHA for 18195c5
src/video/x11/SDL_x11xinput2.c
@@ -342,6 +342,7 @@ bool X11_InitXinput2(SDL_VideoDevice *_this)
342
343
void X11_QuitXinput2(SDL_VideoDevice *_this)
344
{
345
+#ifdef SDL_VIDEO_DRIVER_X11_XINPUT2
346
SDL_free(xinput2_pointer_button_map);
347
xinput2_pointer_button_map = NULL;
348
xinput2_pointer_button_map_size = 0;
@@ -354,6 +355,7 @@ void X11_QuitXinput2(SDL_VideoDevice *_this)
354
355
scrollable_devices = NULL;
356
scrollable_device_count = 0;
357
#endif
358
+#endif
359
}
360
361
void X11_Xinput2UpdatePointerMapping(SDL_VideoDevice *_this)
0 commit comments