- Electron version: 1.2.2
- Operating system: Linux

This is a problem only in linux. It works in OSX.

``` javascript
win.hide()
win.capturePage(function(img){
 // never called
})
```

shell/browser/api/electron_api_web_contents.cc
gfx::Size size;
  bool stay_hidden = false;
   get size arguments if they exist
  args->GetNext(&size);
   get stayHidden arguments if they exist
  args->GetNext(&stay_hidden);
  ontents()->IncrementCapturerCount(size, stay_hidden);
}
void WebContents::DecrementCapturerCount(gin::Arguments* args) {
  bool stay_hidden = false;
   get stayHidden arguments if they exist
  args->GetNext(&stay_hidden);
  ontents()->DecrementCapturerCount(stay_hidden);
}
bool WebContents::IsBeingCaptured() {
  return ontents()->IsBeingCaptured();
}
void WebContents::OnCursorChanged(const content::WebCursor& webcursor) {