libuwac: Fix code format
author0140454 <s1994928@yahoo.com.tw>
Thu, 4 Feb 2021 13:51:23 +0000 (21:51 +0800)
committerakallabeth <akallabeth@users.noreply.github.com>
Thu, 25 Feb 2021 08:51:41 +0000 (09:51 +0100)
(cherry picked from commit 706b6ddbb12a22986a1a86171d4c19775f4a5d6f)

uwac/libuwac/uwac-input.c

index 20af1e5..1e02001 100644 (file)
@@ -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;
+       UwacKeyboardModifiersEventevent;
        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;