update touch enabled/disabled based on seat capabilities

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-01-17 08:42:53 -05:00
parent 638d5d502f
commit 1e37dd65fd
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}