| Index: content/browser/renderer_host/render_widget_host_view_aura.cc
|
| ===================================================================
|
| --- content/browser/renderer_host/render_widget_host_view_aura.cc (revision 238186)
|
| +++ content/browser/renderer_host/render_widget_host_view_aura.cc (working copy)
|
| @@ -2976,6 +2976,17 @@
|
| (screen->GetDisplayNearestWindow(window_).id() !=
|
| screen->GetDisplayNearestWindow(gained_focus).id());
|
| if (is_fullscreen_ && !in_shutdown_ && !focusing_other_display) {
|
| +#if defined(OS_WIN)
|
| + // On Windows, if we are switching to a non Aura Window on a different
|
| + // screen we should not close the fullscreen window.
|
| + if (!gained_focus) {
|
| + POINT point = {0};
|
| + ::GetCursorPos(&point);
|
| + if (screen->GetDisplayNearestWindow(window_).id() !=
|
| + screen->GetDisplayNearestPoint(gfx::Point(point)).id())
|
| + return;
|
| + }
|
| +#endif
|
| in_shutdown_ = true;
|
| host_->Shutdown();
|
| }
|
|
|