shadow/mac: add monitor detection