mirror of
https://github.com/glfw/glfw.git
synced 2026-02-20 22:23:12 +01:00
Wayland: Implement compose key for character input
This commit has been copied almost verbatim from Bryce Harrington’s patch against Weston’s toytoolkit[1]. He gave his agreement to relicense it under zlib[2]. [1] https://patchwork.freedesktop.org/patch/114661/ [2] https://github.com/glfw/glfw/pull/879#issuecomment-252988257
This commit is contained in:
committed by
linkmauve
parent
efc6b35615
commit
046d281abc
@@ -29,6 +29,7 @@
|
||||
|
||||
#include <wayland-client.h>
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
#include <xkbcommon/xkbcommon-compose.h>
|
||||
#include <dlfcn.h>
|
||||
|
||||
typedef VkFlags VkWaylandSurfaceCreateFlagsKHR;
|
||||
@@ -136,6 +137,7 @@ typedef struct _GLFWlibraryWayland
|
||||
struct xkb_context* context;
|
||||
struct xkb_keymap* keymap;
|
||||
struct xkb_state* state;
|
||||
struct xkb_compose_state* composeState;
|
||||
xkb_mod_mask_t controlMask;
|
||||
xkb_mod_mask_t altMask;
|
||||
xkb_mod_mask_t shiftMask;
|
||||
|
||||
Reference in New Issue
Block a user