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

Unified Diff: trunk/src/ash/display/mirror_window_controller.cc

Issue 23943010: Revert 223621 "x11: Prefer using ui::GetXDisplay() over getting ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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
« no previous file with comments | « no previous file | trunk/src/ui/aura/root_window_host_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ash/display/mirror_window_controller.cc
===================================================================
--- trunk/src/ash/display/mirror_window_controller.cc (revision 223638)
+++ trunk/src/ash/display/mirror_window_controller.cc (working copy)
@@ -34,10 +34,6 @@
#include "ui/gfx/image/image_skia_operations.h"
#include "ui/gfx/native_widget_types.h"
-#if defined(USE_X11)
-#include "ui/base/x/x11_util.h"
-#endif
-
namespace ash {
namespace internal {
namespace {
@@ -47,7 +43,8 @@
void DisableInput(XID window) {
long event_mask = ExposureMask | VisibilityChangeMask |
StructureNotifyMask | PropertyChangeMask;
- XSelectInput(ui::GetXDisplay(), window, event_mask);
+ XSelectInput(base::MessagePumpX11::GetDefaultXDisplay(),
+ window, event_mask);
}
#endif
« no previous file with comments | « no previous file | trunk/src/ui/aura/root_window_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698