tz_devicemgr_ungrab_keyboard(tz_devicemgr);
ds_seat_keyboard_grab_destroy(tz_devicemgr->grab);
- wl_signal_emit(&tz_devicemgr->events.destroy, tz_devicemgr);
+ wl_signal_emit_mutable(&tz_devicemgr->events.destroy, tz_devicemgr);
wl_list_remove(&tz_devicemgr->backend_destroy.link);
wl_list_remove(&tz_devicemgr->seat_destroy.link);
wl_list_remove(&tz_devicemgr->new_input.link);
ds_inf("Pointer warp. surface:%p, x:%.2f, y:%.2f", ds_event.surface,
ds_event.x, ds_event.y);
- wl_signal_emit(&tz_devicemgr->events.pointer_warp, &ds_event);
+ wl_signal_emit_mutable(&tz_devicemgr->events.pointer_warp, &ds_event);
ret = TIZEN_INPUT_DEVICE_MANAGER_ERROR_NONE;
finish:
tz_devicemgr->devices.kbd->ref++;
}
if (dev->created) {
- wl_signal_emit(&tz_devicemgr->backend->events.new_input,
+ wl_signal_emit_mutable(&tz_devicemgr->backend->events.new_input,
dev->input_device);
}
}
tz_devicemgr->devices.ptr->ref++;
}
if (dev->created) {
- wl_signal_emit(&tz_devicemgr->backend->events.new_input,
+ wl_signal_emit_mutable(&tz_devicemgr->backend->events.new_input,
dev->input_device);
}
}
tz_devicemgr->devices.touch->ref++;
}
if (dev->created) {
- wl_signal_emit(&tz_devicemgr->backend->events.new_input,
+ wl_signal_emit_mutable(&tz_devicemgr->backend->events.new_input,
dev->input_device);
}
}
ds_event.y = y;
ds_inf("Generate touch motion. touch:%p, id:%d (%d, %d)", touch, ds_event.id, x, y);
- wl_signal_emit(&touch->events.motion, &ds_event);
+ wl_signal_emit_mutable(&touch->events.motion, &ds_event);
return true;
}
ds_event.y = y;
ds_inf("Generate touch down. touch:%p, id:%d (%d, %d)", touch, ds_event.id, x, y);
- wl_signal_emit(&touch->events.down, &ds_event);
+ wl_signal_emit_mutable(&touch->events.down, &ds_event);
return true;
}
ds_event.id = finger;
ds_inf("Generate touch up. touch:%p, id:%d", touch, ds_event.id);
- wl_signal_emit(&touch->events.up, &ds_event);
+ wl_signal_emit_mutable(&touch->events.up, &ds_event);
return true;
}
ds_event.delta_y = y;
ds_inf("Generate mouse motion. pointer:%p, x:%f, y:%f", pointer, ds_event.delta_x, ds_event.delta_y);
- wl_signal_emit(&pointer->events.motion, &ds_event);
+ wl_signal_emit_mutable(&pointer->events.motion, &ds_event);
return true;
}
ds_event.state = DS_BUTTON_RELEASED;
ds_inf("Generate mouse button. pointer:%p, button:%d, state:%s", pointer, ds_event.button, state ? "PRESSED" : "RELEASED");
- wl_signal_emit(&pointer->events.button, &ds_event);
+ wl_signal_emit_mutable(&pointer->events.button, &ds_event);
return true;
}