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

Unified Diff: ui/events/platform/x11/x11_event_source.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/events/platform/x11/x11_event_source.h ('k') | ui/platform_window/x11/x11_window_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1923e95fa14dbb8d97d401201129b4d8ad1dc355..a49cda90a74ed351b5a6c367e8120fa359dbf70c 100644
--- a/ui/events/platform/x11/x11_event_source.cc
+++ b/ui/events/platform/x11/x11_event_source.cc
@@ -10,6 +10,7 @@
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
+#include "ui/base/x/x11_window_event_manager.h"
#include "ui/events/devices/x11/device_data_manager_x11.h"
#include "ui/events/devices/x11/touch_factory_x11.h"
#include "ui/events/event_utils.h"
@@ -160,7 +161,8 @@ Time X11EventSource::GetCurrentServerTime() {
dummy_window_ = XCreateSimpleWindow(display_, DefaultRootWindow(display_),
0, 0, 1, 1, 0, 0, 0);
dummy_atom_ = XInternAtom(display_, "CHROMIUM_TIMESTAMP", False);
- XSelectInput(display_, dummy_window_, PropertyChangeMask);
+ dummy_window_events_.reset(
+ new XScopedEventSelector(dummy_window_, PropertyChangeMask));
dummy_initialized_ = true;
}
« no previous file with comments | « ui/events/platform/x11/x11_event_source.h ('k') | ui/platform_window/x11/x11_window_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698