Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Mar 28, 2018
1 parent 9ba2c4b commit 80f3fe6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion glfw/wl_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ static void keyboardHandleModifiers(void* data,
uint32_t modsLocked,
uint32_t group)
{
xkb_glfw_update_modifiers(modsDepressed, modsLatched, modsLocked);
xkb_glfw_update_modifiers(modsDepressed, modsLatched, modsLocked, group);
}

static void keyboardHandleRepeatInfo(void* data,
Expand Down
8 changes: 4 additions & 4 deletions glfw/xkb_glfw.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ typedef struct {
struct xkb_keymap* keymap;
struct xkb_state* state;
struct xkb_compose_state* composeState;
short int keycodes[256];
short int scancodes[GLFW_KEY_LAST + 1];
short int keycodes[256];
short int scancodes[GLFW_KEY_LAST + 1];

xkb_mod_mask_t controlMask;
xkb_mod_mask_t altMask;
Expand Down Expand Up @@ -165,7 +165,7 @@ typedef struct {
if (!GLFW_XKB_GLOBAL_NAME.context) \
{ \
_glfwInputError(GLFW_PLATFORM_ERROR, \
"Failed to initialize xkb context"); \
"Failed to initialize XKB context"); \
return GLFW_FALSE; \
} \
int scancode; \
Expand Down Expand Up @@ -354,7 +354,7 @@ typedef struct {
}


#define xkb_glfw_update_modifiers(depressed, latched, locked) {\
#define xkb_glfw_update_modifiers(depressed, latched, locked, group) {\
xkb_mod_mask_t mask; \
unsigned int modifiers = 0; \
if (!GLFW_XKB_GLOBAL_NAME.keymap) return; \
Expand Down

0 comments on commit 80f3fe6

Please sign in to comment.