st/xorg: split copy operation into prepare/copy/done phases