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

Unified Diff: ui/base/x/events_x.cc

Issue 23622035: x11: Prefer using ui::GetXDisplay() over getting the Display from the X11 message-pump. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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
Index: ui/base/x/events_x.cc
diff --git a/ui/base/x/events_x.cc b/ui/base/x/events_x.cc
index a0fa2e9717393d762f5588cd709723c222c1d9a0..c6e36f22ce138e8c5f9f67c5b02113969d373c17 100644
--- a/ui/base/x/events_x.cc
+++ b/ui/base/x/events_x.cc
@@ -260,9 +260,7 @@ double GetTouchParamFromXEvent(XEvent* xev,
}
Atom GetNoopEventAtom() {
- return XInternAtom(
- base::MessagePumpX11::GetDefaultXDisplay(),
- "noop", False);
+ return XInternAtom(ui::GetXDisplay(), "noop", False);
}
} // namespace
« no previous file with comments | « ui/aura/test/ui_controls_factory_aurax11.cc ('k') | ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698