forked from enlightenment/enlightenment
Fix formatting
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
fb5fce9720
commit
5c2b91e7b2
|
@ -126,10 +126,14 @@ _e_comp_wl_input_cb_keyboard_unbind(struct wl_resource *resource)
|
|||
e_comp_wl->kbd.resources =
|
||||
eina_list_remove(e_comp_wl->kbd.resources, resource);
|
||||
EINA_LIST_FOREACH_SAFE(e_comp_wl->kbd.focused, l, ll, res)
|
||||
{
|
||||
if (res == resource)
|
||||
{
|
||||
e_comp_wl->kbd.focused =
|
||||
eina_list_remove_list(e_comp_wl->kbd.focused, l);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
e_comp_wl_input_keyboard_enter_send(E_Client *ec)
|
||||
|
@ -169,8 +173,7 @@ _e_comp_wl_input_cb_keyboard_get(struct wl_client *client, struct wl_resource *r
|
|||
wl_resource_get_version(resource), id);
|
||||
if (!res)
|
||||
{
|
||||
ERR("Could not create keyboard on seat %s: %m",
|
||||
e_comp_wl->seat.name);
|
||||
ERR("Could not create keyboard on seat %s: %m", e_comp_wl->seat.name);
|
||||
wl_client_post_no_memory(client);
|
||||
return;
|
||||
}
|
||||
|
@ -187,8 +190,7 @@ _e_comp_wl_input_cb_keyboard_get(struct wl_client *client, struct wl_resource *r
|
|||
|
||||
/* send current keymap */
|
||||
wl_keyboard_send_keymap(res, WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1,
|
||||
e_comp_wl->xkb.fd,
|
||||
e_comp_wl->xkb.size);
|
||||
e_comp_wl->xkb.fd, e_comp_wl->xkb.size);
|
||||
|
||||
/* if the client owns the focused surface, we need to send an enter */
|
||||
focused = e_client_focused_get();
|
||||
|
@ -403,8 +405,7 @@ _e_comp_wl_input_keymap_update(struct xkb_keymap *keymap)
|
|||
/* send updated keymap */
|
||||
EINA_LIST_FOREACH(e_comp_wl->kbd.resources, l, res)
|
||||
wl_keyboard_send_keymap(res, WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1,
|
||||
e_comp_wl->xkb.fd,
|
||||
e_comp_wl->xkb.size);
|
||||
e_comp_wl->xkb.fd, e_comp_wl->xkb.size);
|
||||
|
||||
/* update modifiers */
|
||||
e_comp_wl_input_keyboard_modifiers_update();
|
||||
|
@ -501,18 +502,15 @@ e_comp_wl_input_keyboard_modifiers_serialize(void)
|
|||
xkb_mod_mask_t mod;
|
||||
xkb_layout_index_t grp;
|
||||
|
||||
mod = xkb_state_serialize_mods(e_comp_wl->xkb.state,
|
||||
XKB_STATE_DEPRESSED);
|
||||
mod = xkb_state_serialize_mods(e_comp_wl->xkb.state, XKB_STATE_DEPRESSED);
|
||||
changed |= mod != e_comp_wl->kbd.mod_depressed;
|
||||
e_comp_wl->kbd.mod_depressed = mod;
|
||||
|
||||
mod = xkb_state_serialize_mods(e_comp_wl->xkb.state,
|
||||
XKB_STATE_MODS_LATCHED);
|
||||
mod = xkb_state_serialize_mods(e_comp_wl->xkb.state, XKB_STATE_MODS_LATCHED);
|
||||
changed |= mod != e_comp_wl->kbd.mod_latched;
|
||||
e_comp_wl->kbd.mod_latched = mod;
|
||||
|
||||
mod = xkb_state_serialize_mods(e_comp_wl->xkb.state,
|
||||
XKB_STATE_MODS_LOCKED);
|
||||
mod = xkb_state_serialize_mods(e_comp_wl->xkb.state, XKB_STATE_MODS_LOCKED);
|
||||
changed |= mod != e_comp_wl->kbd.mod_locked;
|
||||
e_comp_wl->kbd.mod_locked = mod;
|
||||
|
||||
|
|
Loading…
Reference in New Issue