mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 00:49:48 +00:00
Wayland: Remove last traces of legacy Unicode path
The legacy keysym-to-Unicode path is only used on X11 since
21fea01161, but the file was still
included in Wayland-only builds.
This commit is contained in:
+3
-3
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
#if defined(_GLFW_X11) || defined(_GLFW_WAYLAND)
|
||||
#if defined(_GLFW_X11)
|
||||
|
||||
/*
|
||||
* Marcus: This code was originally written by Markus G. Kuhn.
|
||||
@@ -906,7 +906,7 @@ static const struct codepair {
|
||||
|
||||
// Convert XKB KeySym to Unicode
|
||||
//
|
||||
uint32_t _glfwKeySym2Unicode(unsigned int keysym)
|
||||
uint32_t _glfwKeySym2UnicodeX11(unsigned int keysym)
|
||||
{
|
||||
int min = 0;
|
||||
int max = sizeof(keysymtab) / sizeof(struct codepair) - 1;
|
||||
@@ -939,5 +939,5 @@ uint32_t _glfwKeySym2Unicode(unsigned int keysym)
|
||||
return GLFW_INVALID_CODEPOINT;
|
||||
}
|
||||
|
||||
#endif // _GLFW_WAYLAND or _GLFW_X11
|
||||
#endif // _GLFW_X11
|
||||
|
||||
|
||||
Reference in New Issue
Block a user