From 1e37dd65fd34342748c2e5c21412444c9b944a7d Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 17 Jan 2017 08:42:53 -0500 Subject: [PATCH] update touch enabled/disabled based on seat capabilities Signed-off-by: Chris Michael --- src/modules/wl_drm/e_mod_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/wl_drm/e_mod_main.c b/src/modules/wl_drm/e_mod_main.c index 56d11cc2e..b9cea2d90 100644 --- a/src/modules/wl_drm/e_mod_main.c +++ b/src/modules/wl_drm/e_mod_main.c @@ -1193,6 +1193,11 @@ _drm2_cb_seat_caps(void *data EINA_UNUSED, int type EINA_UNUSED, void *event) else if (ev->keyboard_count > 0) e_comp_wl_input_keyboard_enabled_set(EINA_TRUE); + if (ev->touch_count <= 0) + e_comp_wl_input_touch_enabled_set(EINA_FALSE); + else if (ev->touch_count > 0) + e_comp_wl_input_touch_enabled_set(EINA_TRUE); + return ECORE_CALLBACK_RENEW; }