]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix building on Windows, close #1896
authorCheng Zhao <zcbenz@gmail.com>
Mon, 8 Jun 2015 05:19:56 +0000 (13:19 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 8 Jun 2015 05:19:56 +0000 (13:19 +0800)
atom/browser/common_web_contents_delegate.cc
atom/browser/native_window_views.cc

index 1cf75cf021ef6414caa4fabb4a97c6bbe9f27d66..eeb8d5748edcf55e7b2e2458e319a647dcbc16ad 100644 (file)
@@ -11,6 +11,7 @@
 #include "atom/browser/native_window.h"
 #include "atom/browser/ui/file_dialog.h"
 #include "atom/browser/web_dialog_helper.h"
+#include "base/files/file_util.h"
 #include "chrome/browser/ui/browser_dialogs.h"
 #include "content/public/browser/child_process_security_policy.h"
 #include "content/public/browser/render_process_host.h"
index 710788ddbd11c024a909a12489e5d84ed970eb99..697d0779f3f930948885ad5335d9f6f267e0fd4f 100644 (file)
@@ -726,7 +726,8 @@ void NativeWindowViews::OnWidgetActivationChanged(
   else
     NotifyWindowBlur();
 
-  if (active && GetWebContents() && !IsDevToolsOpened())
+  if (active && GetWebContents() &&
+      !inspectable_web_contents()->IsDevToolsViewShowing())
     GetWebContents()->Focus();
 
   // Hide menu bar when window is blured.