| Index: ui/views/widget/x11_window_event_filter.cc
|
| diff --git a/ui/views/widget/x11_window_event_filter.cc b/ui/views/widget/x11_window_event_filter.cc
|
| index 51065fdc6874b82b04e876f1830d29fd3968e7fe..1d241e80056ba601d68cea47abb2eb86576b0ff2 100644
|
| --- a/ui/views/widget/x11_window_event_filter.cc
|
| +++ b/ui/views/widget/x11_window_event_filter.cc
|
| @@ -7,11 +7,10 @@
|
| #include <X11/extensions/XInput.h>
|
| #include <X11/extensions/XInput2.h>
|
|
|
| -#include "base/message_pump_x.h"
|
| +#include "base/message_pump_aurax11.h"
|
| #include "ui/aura/env.h"
|
| #include "ui/aura/root_window.h"
|
| #include "ui/aura/window_delegate.h"
|
| -#include "ui/aura/x11_atom_cache.h"
|
| #include "ui/base/hit_test.h"
|
|
|
| namespace {
|
| @@ -50,7 +49,7 @@ namespace views {
|
|
|
| X11WindowEventFilter::X11WindowEventFilter(aura::RootWindow* root_window)
|
| : root_window_(root_window),
|
| - xdisplay_(base::MessagePumpX::GetDefaultXDisplay()),
|
| + xdisplay_(base::MessagePumpAuraX11::GetDefaultXDisplay()),
|
| xwindow_(root_window_->GetAcceleratedWidget()),
|
| x_root_window_(DefaultRootWindow(xdisplay_)) {
|
| }
|
| @@ -58,14 +57,14 @@ X11WindowEventFilter::X11WindowEventFilter(aura::RootWindow* root_window)
|
| X11WindowEventFilter::~X11WindowEventFilter() {}
|
|
|
| void X11WindowEventFilter::SetUseHostWindowBorders(bool use_os_border) {
|
| - aura::X11AtomCache* cache = aura::Env::GetInstance()->atom_cache();
|
| MotifWmHints motif_hints;
|
| memset(&motif_hints, 0, sizeof(motif_hints));
|
| motif_hints.flags = kHintsDecorations;
|
| motif_hints.decorations = use_os_border ? 1 : 0;
|
|
|
| - ::Atom hint_atom = cache->GetAtom(aura::ATOM__MOTIF_WM_HINTS);
|
| - XChangeProperty(base::MessagePumpX::GetDefaultXDisplay(),
|
| + ::Atom hint_atom = base::MessagePumpAuraX11::GetAtom(
|
| + base::atom::_MOTIF_WM_HINTS);
|
| + XChangeProperty(base::MessagePumpAuraX11::GetDefaultXDisplay(),
|
| xwindow_,
|
| hint_atom,
|
| hint_atom,
|
| @@ -173,8 +172,8 @@ bool X11WindowEventFilter::DispatchHostWindowDragMovement(
|
| event.xclient.type = ClientMessage;
|
| event.xclient.display = xdisplay_;
|
| event.xclient.window = xwindow_;
|
| - event.xclient.message_type = aura::Env::GetInstance()->atom_cache()->GetAtom(
|
| - aura::ATOM__NET_WM_MOVERESIZE);
|
| + event.xclient.message_type = base::MessagePumpAuraX11::GetAtom(
|
| + base::atom::_NET_WM_MOVERESIZE);
|
| event.xclient.format = 32;
|
| event.xclient.data.l[0] = screen_location.x();
|
| event.xclient.data.l[1] = screen_location.y();
|
|
|