Index: ui/views/widget/desktop_aura/x11_desktop_handler.cc |
diff --git a/ui/views/widget/desktop_aura/x11_desktop_handler.cc b/ui/views/widget/desktop_aura/x11_desktop_handler.cc |
index 2ffd324809e0c2cdf79f893709b8cc223ebce3cf..e4f6dea73ecc0d87b2cc0f8d9e1234c6e21d2827 100644 |
--- a/ui/views/widget/desktop_aura/x11_desktop_handler.cc |
+++ b/ui/views/widget/desktop_aura/x11_desktop_handler.cc |
@@ -58,10 +58,8 @@ X11DesktopHandler::X11DesktopHandler() |
attr.your_event_mask | PropertyChangeMask | |
StructureNotifyMask | SubstructureNotifyMask); |
- ::Window active_window; |
wm_supports_active_window_ = |
- ui::GetXIDProperty(x_root_window_, "_NET_ACTIVE_WINDOW", &active_window) && |
- active_window; |
+ ui::WmSupportsHint(atom_cache_.GetAtom("_NET_ACTIVE_WINDOW")); |
} |
X11DesktopHandler::~X11DesktopHandler() { |