Index: ui/events/platform/x11/x11_event_source.cc |
diff --git a/ui/events/platform/x11/x11_event_source.cc b/ui/events/platform/x11/x11_event_source.cc |
index c4d2f46d09b5360c98c5a6b9332c9b411f7bb5b0..71a3fb5a93f6eea5ce20a29d64d416eb55156a5e 100644 |
--- a/ui/events/platform/x11/x11_event_source.cc |
+++ b/ui/events/platform/x11/x11_event_source.cc |
@@ -196,11 +196,9 @@ uint32_t X11EventSource::DispatchEvent(XEvent* xevent) { |
// TODO(sad): Remove this once all MessagePumpObservers are turned into |
// PlatformEventObservers. |
- uint32_t action = ui::POST_DISPATCH_NONE; |
- if (!base::MessagePumpX11::Current()->WillProcessXEvent(xevent)) { |
- action = PlatformEventSource::DispatchEvent(xevent); |
- base::MessagePumpX11::Current()->DidProcessXEvent(xevent); |
- } |
+ base::MessagePumpX11::Current()->WillProcessXEvent(xevent); |
+ uint32_t action = PlatformEventSource::DispatchEvent(xevent); |
+ base::MessagePumpX11::Current()->DidProcessXEvent(xevent); |
if (have_cookie) |
XFreeEventData(xevent->xgeneric.display, &xevent->xcookie); |