only call old ecore_drm2 functions if built and run against < 1.20 efl

This commit is contained in:
Mike Blumenkrantz 2017-06-30 15:41:55 -04:00
parent 755f03fd65
commit e2ba10b7db
1 changed files with 7 additions and 2 deletions

View File

@ -661,8 +661,13 @@ _e_comp_wl_input_context_keymap_set(struct xkb_keymap *keymap, struct xkb_contex
dev = ecore_evas_data_get(e_comp->ee, "device");
if (dev)
{
ecore_drm2_device_keyboard_cached_context_set(dev, context);
ecore_drm2_device_keyboard_cached_keymap_set(dev, keymap);
#ifndef EFL_VERSION_1_20
if (!E_EFL_VERSION_MINIMUM(1, 19, 99))
{
ecore_drm2_device_keyboard_cached_context_set(dev, context);
ecore_drm2_device_keyboard_cached_keymap_set(dev, keymap);
}
#endif
}
}
# else