Don't call ecore_x_xkb_select_group if the compositor is not X11

This fixes T2533 where the startup wizard would crash when run under
DRM due to the change in build options (xwayland support).

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-07-01 09:16:18 -04:00
parent c9a444c85d
commit e94a04eddc
1 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,8 @@ e_xkb_update(int cur_group)
{
_e_xkb_cur_group = cur_group;
#ifndef HAVE_WAYLAND_ONLY
ecore_x_xkb_select_group(cur_group);
if (e_comp->comp_type == E_PIXMAP_TYPE_X)
ecore_x_xkb_select_group(cur_group);
#endif
e_deskenv_xmodmap_run();
_e_xkb_update_event(cur_group);