From 074903ca338aa51577c4c599d586f835dbb7cac5 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 19 Jun 2016 16:55:45 +0900 Subject: [PATCH] Do not emit "unresponsive" when there is modal dialog --- atom/browser/native_window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/native_window.cc b/atom/browser/native_window.cc index 2ce6779d6205..6db53df28aca 100644 --- a/atom/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -620,7 +620,7 @@ void NativeWindow::ScheduleUnresponsiveEvent(int ms) { void NativeWindow::NotifyWindowUnresponsive() { window_unresposive_closure_.Cancel(); - if (!is_closed_ && !HasModalDialog()) + if (!is_closed_ && !HasModalDialog() && IsEnabled()) FOR_EACH_OBSERVER(NativeWindowObserver, observers_, OnRendererUnresponsive());