The proposed constitution grew out of the 2008 power-sharing deal between President Mwai Kibaki and Prime Minister Raila Odinga after a disputed election triggered riots and ethnic violence across Kenya .