libuwac: Fix code format
This commit is contained in:
parent
79606a9abf
commit
522c0cb3ad
@ -427,7 +427,7 @@ static void keyboard_handle_modifiers(void* data, struct wl_keyboard* keyboard,
|
||||
uint32_t mods_locked, uint32_t group)
|
||||
{
|
||||
UwacSeat* input = data;
|
||||
UwacKeyboardModifiersEvent *event;
|
||||
UwacKeyboardModifiersEvent* event;
|
||||
xkb_mod_mask_t mask;
|
||||
|
||||
/* If we're not using a keymap, then we don't handle PC-style modifiers */
|
||||
@ -435,8 +435,9 @@ static void keyboard_handle_modifiers(void* data, struct wl_keyboard* keyboard,
|
||||
return;
|
||||
|
||||
xkb_state_update_mask(input->xkb.state, mods_depressed, mods_latched, mods_locked, 0, 0, group);
|
||||
mask = xkb_state_serialize_mods(input->xkb.state,
|
||||
XKB_STATE_MODS_DEPRESSED | XKB_STATE_MODS_LATCHED | XKB_STATE_MODS_LOCKED);
|
||||
mask = xkb_state_serialize_mods(input->xkb.state, XKB_STATE_MODS_DEPRESSED |
|
||||
XKB_STATE_MODS_LATCHED |
|
||||
XKB_STATE_MODS_LOCKED);
|
||||
input->modifiers = 0;
|
||||
if (mask & input->xkb.control_mask)
|
||||
input->modifiers |= UWAC_MOD_CONTROL_MASK;
|
||||
|
Loading…
Reference in New Issue
Block a user