edev->device = device;
edev->path = eina_stringshare_printf("%s/%s", e_input_base_dir_get(), libinput_device_get_sysname(device));
+ g_mutex_init(&edev->touch.raw_pressed_mutex);
+ g_mutex_init(&edev->touch.blocked_mutex);
+
if (libinput_device_has_capability(device, LIBINPUT_DEVICE_CAP_KEYBOARD))
{
edev->caps |= E_INPUT_SEAT_KEYBOARD;
_device_touch_count_update(edev);
- g_mutex_init(&edev->touch.raw_pressed_mutex);
- g_mutex_init(&edev->touch.blocked_mutex);
edev->touch.coords = calloc(1, sizeof(E_Input_Coord)*e_input_touch_max_count_get());
if (!edev->touch.coords)