distribution/packages/games/emulators/retroarch/patches/retroarch-01-xkb-fix.patch
2022-02-05 09:23:32 -05:00

30 lines
800 B
Diff

diff --git a/input/drivers/udev_input.c b/input/drivers/udev_input.c
index bcdacb60a6..d2f00114bd 100644
--- a/input/drivers/udev_input.c
+++ b/input/drivers/udev_input.c
@@ -76,14 +76,14 @@
#include "../../retroarch.h"
#include "../../verbosity.h"
-#if defined(HAVE_XKBCOMMON) && defined(HAVE_KMS)
+#if defined(HAVE_XKBCOMMON)
#define UDEV_XKB_HANDLING
#endif
/* Force UDEV_XKB_HANDLING for Lakka */
#ifdef HAVE_LAKKA
#ifndef UDEV_XKB_HANDLING
-#define UDEV_XKB_HANDLING
+#undef UDEV_XKB_HANDLING
#endif
#endif
@@ -1402,7 +1402,7 @@
/* Force xkb_handling on Lakka */
udev->xkb_handling = true;
#else
- udev->xkb_handling = string_is_equal(ctx_ident.ident, "kms");
+ udev->xkb_handling = true; //string_is_equal(ctx_ident.ident, "kms");
#endif /* HAVE_LAKKA */
#endif