Thats why ubuntu with Unity is not really a recommended route to a media pc with kodi. Recommended base distros are xubuntu (xfce) or lubuntu (lxde). Neither is dependent on compositing. kodbuntu is based on xfce I think.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)