Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Unified Diff: ui/platform_window/x11/x11_window_base.cc

Issue 2319933002: X11: Remove calls to XSelectInput (Closed)
Patch Set: Comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/platform_window/x11/x11_window_base.h ('k') | ui/views/test/x11_property_change_waiter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)];
« no previous file with comments | « ui/platform_window/x11/x11_window_base.h ('k') | ui/views/test/x11_property_change_waiter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698