Rename currentBuffer to currentEvent to clarify API
Change current event compositing mode if attachment changes