Add support for recording a specific window