Adds a reference to the widget in the compositor
Sets widget size allocation whenever a new buffer is attached