Index: ash/host/ash_window_tree_host_x11.cc |
diff --git a/ash/host/ash_window_tree_host_x11.cc b/ash/host/ash_window_tree_host_x11.cc |
index 9ac9d15f7837c30799822d947429840a0c1b5092..1999052530ebac1da66e86527c4d23cc592c6a10 100644 |
--- a/ash/host/ash_window_tree_host_x11.cc |
+++ b/ash/host/ash_window_tree_host_x11.cc |
@@ -239,16 +239,14 @@ void AshWindowTreeHostX11::TranslateAndDispatchLocatedEvent( |
bool AshWindowTreeHostX11::DispatchKeyEventPostIME(const ui::KeyEvent& event) { |
ui::KeyEvent event_copy(event); |
input_method_handler()->SetPostIME(true); |
- ui::EventSource::DeliverEventToProcessor(&event_copy); |
+ ui::EventDispatchDetails details = |
+ event_processor()->OnEventFromSource(&event_copy); |
+ if (details.dispatcher_destroyed) |
+ return true; |
input_method_handler()->SetPostIME(false); |
return event_copy.stopped_propagation(); |
} |
-ui::EventDispatchDetails AshWindowTreeHostX11::DeliverEventToProcessor( |
- ui::Event* event) { |
- return ui::EventSource::DeliverEventToProcessor(event); |
-} |
- |
#if defined(OS_CHROMEOS) |
void AshWindowTreeHostX11::SetCrOSTapPaused(bool state) { |
if (!ui::IsXInput2Available()) |