- 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
bool only_dirty = false;
  FrameSubscriber::FrameCaptureCallback callback;
  if (args->Length() > 1) {
    if (!args->GetNext(&only_dirty)) {
      args->ThrowError();
      return;
    }
  }
  if (!args->GetNext(&callback)) {
    args->ThrowError();
    return;
  }
  frame_subscriber_ =
      std::make_unique<FrameSubscriber>(ontents(), callback, only_dirty);
}
void WebContents::EndFrameSubscription() {