- In devel/master branch, the patch already adjusted
Change-Id: If6e8b3441e44ba8df79b81277bc6af73702cfb99
mXkbData.mContext = xkb_context_new( XKB_CONTEXT_NO_FLAGS );
}
+ if( !mXkbData.mContext )
+ {
+ DALI_LOG_ERROR("xkb_context_new failed");
+ close(fd);
+ return;
+ }
// current formats defined in wayland-client-protocol.h
// WL_KEYBOARD_KEYMAP_FORMAT_NO_KEYMAP =0, WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1=1
return;
}
- if( !mXkbData.mContext )
- {
- DALI_LOG_ERROR("xkb_context_new failed");
- close(fd);
- return;
- }
mXkbData.mKeymap = xkb_map_new_from_string(mXkbData.mContext, map, XKB_KEYMAP_FORMAT_TEXT_V1, XKB_KEYMAP_COMPILE_NO_FLAGS);
munmap(map, size);