Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
index 66a424a3b2fa782de0337b0d6a267aecb136b1a5..d9e83edfdb2e1468af30f060d866be66aabdcd9a 100644 |
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
@@ -30,6 +30,7 @@ |
#include "ui/base/dragdrop/os_exchange_data_provider_aurax11.h" |
#include "ui/base/hit_test.h" |
#include "ui/base/ime/input_method.h" |
+#include "ui/base/x/x11_scoped_event_selector.h" |
#include "ui/base/x/x11_util.h" |
#include "ui/base/x/x11_util_internal.h" |
#include "ui/display/display.h" |
@@ -1396,7 +1397,7 @@ void DesktopWindowTreeHostX11::InitX11Window( |
ExposureMask | VisibilityChangeMask | |
StructureNotifyMask | PropertyChangeMask | |
PointerMotionMask; |
- XSelectInput(xdisplay_, xwindow_, event_mask); |
+ xwindow_events_.reset(new ui::XScopedEventSelector(xwindow_, event_mask)); |
XFlush(xdisplay_); |
if (ui::IsXInput2Available()) |