Support taking screenshots when a webdriver server is active.

This commit is contained in:
Josh Matthews 2016-10-18 19:51:32 -04:00
parent 0af9be9429
commit e19268c04e
3 changed files with 7 additions and 2 deletions

View file

@ -715,6 +715,9 @@ impl<Window: WindowMethods> IOCompositor<Window> {
(Msg::CreatePng(reply), ShutdownState::NotShuttingDown) => {
let res = self.composite_specific_target(CompositeTarget::WindowAndPng);
if let Err(ref e) = res {
info!("Error retrieving PNG: {:?}", e);
}
let img = res.unwrap_or(None);
if let Err(e) = reply.send(img) {
warn!("Sending reply to create png failed ({}).", e);