Use desktop mode. Reuse exisinting buffers e.g. for recompilation whatever the frame it resides in.