Chromium Code Reviews| 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..d671a04ae842fcfd1dda48349eccd68ef3ad19ff 100644 |
| --- a/ui/aura/window_event_dispatcher.cc |
| +++ b/ui/aura/window_event_dispatcher.cc |
| @@ -378,7 +378,7 @@ void WindowEventDispatcher::UpdateCapture(Window* old_capture, |
| gfx::Point(), 0, 0); |
| DispatchDetails details = DispatchEvent(old_capture, &event); |
| - if (details.dispatcher_destroyed) |
| + if (details.dispatcher_destroyed || details.target_destroyed) |
|
sky
2014/10/21 02:45:32
If target_destroyed is true, isn't the only thing
mfomitchev
2014/10/21 20:02:03
Done.
|
| return; |
| old_capture->delegate()->OnCaptureLost(); |