Don't try to send an updated keymap if we have no keyboard resource.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
Chris Michael 2013-06-09 09:40:50 +01:00
parent 09ad8b6749
commit 8f02899b9a
1 changed files with 4 additions and 0 deletions

View File

@ -1544,6 +1544,10 @@ _e_comp_wl_cb_keymap_changed(void *data EINA_UNUSED, int type EINA_UNUSED, void
xkb_map_unref(keymap);
}
/* check for valid keyboard */
if (!_e_wl_comp->input->wl.keyboard_resource)
return ECORE_CALLBACK_PASS_ON;
/* send the current keymap to the keyboard object */
wl_keyboard_send_keymap(_e_wl_comp->input->wl.keyboard_resource,
WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1,