Index: ui/platform_window/x11/x11_window_base.cc |
diff --git a/ui/platform_window/x11/x11_window_base.cc b/ui/platform_window/x11/x11_window_base.cc |
index 527629b105b3448e2b3af92f9dabee6455968920..799933e417e38423aa7f1ece5f556797625481ca 100644 |
--- a/ui/platform_window/x11/x11_window_base.cc |
+++ b/ui/platform_window/x11/x11_window_base.cc |
@@ -12,6 +12,7 @@ |
#include <string> |
#include "base/strings/utf_string_conversions.h" |
+#include "ui/base/x/x11_window_event_manager.h" |
#include "ui/events/devices/x11/touch_factory_x11.h" |
#include "ui/events/event.h" |
#include "ui/events/event_utils.h" |
@@ -89,7 +90,7 @@ void X11WindowBase::Create() { |
LeaveWindowMask | ExposureMask | VisibilityChangeMask | |
StructureNotifyMask | PropertyChangeMask | |
PointerMotionMask; |
- XSelectInput(xdisplay_, xwindow_, event_mask); |
+ xwindow_events_.reset(new ui::XScopedEventSelector(xwindow_, event_mask)); |
// Setup XInput2 event mask. |
unsigned char mask[XIMaskLen(XI_LASTEVENT)]; |