Index: ui/aura/window_event_dispatcher.cc |
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc |
index 0b1103d016880e8015092b7a734b0a5145a34acc..eadda03f6794645960382900eb4dcc4970ebb0a6 100644 |
--- a/ui/aura/window_event_dispatcher.cc |
+++ b/ui/aura/window_event_dispatcher.cc |
@@ -381,7 +381,8 @@ void WindowEventDispatcher::UpdateCapture(Window* old_capture, |
if (details.dispatcher_destroyed) |
return; |
- old_capture->delegate()->OnCaptureLost(); |
+ if (!details.target_destroyed) |
+ old_capture->delegate()->OnCaptureLost(); |
} |
if (new_capture) { |