discomfitor pushed a commit to branch enlightenment-0.21.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=e2ba10b7db46147c1e2fb5dc72df00e64c37a4a7

commit e2ba10b7db46147c1e2fb5dc72df00e64c37a4a7
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Jun 30 15:41:55 2017 -0400

    only call old ecore_drm2 functions if built and run against < 1.20 efl
---
 src/bin/e_comp_wl_input.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_comp_wl_input.c b/src/bin/e_comp_wl_input.c
index 07fe26791..3cbb605c7 100644
--- a/src/bin/e_comp_wl_input.c
+++ b/src/bin/e_comp_wl_input.c
@@ -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

-- 


Reply via email to