compositor: fix saving the position when going maximized
compositor: fix cleaning up of the objects when a surface is destroyed