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 e4f6dea73ecc0d87b2cc0f8d9e1234c6e21d2827..695e4183f94956f41a78df4d24b62b690647bb56 100644 |
--- a/ui/views/widget/desktop_aura/x11_desktop_handler.cc |
+++ b/ui/views/widget/desktop_aura/x11_desktop_handler.cc |
@@ -58,8 +58,14 @@ X11DesktopHandler::X11DesktopHandler() |
attr.your_event_mask | PropertyChangeMask | |
StructureNotifyMask | SubstructureNotifyMask); |
- wm_supports_active_window_ = |
- ui::WmSupportsHint(atom_cache_.GetAtom("_NET_ACTIVE_WINDOW")); |
+ if (ui::GuessWindowManager() == ui::WM_WMII) { |
+ // wmii says that it supports _NET_ACTIVE_WINDOW but does not. |
+ // https://code.google.com/p/wmii/issues/detail?id=266 |
+ wm_supports_active_window_ = false; |
+ } else { |
+ wm_supports_active_window_ = |
+ ui::WmSupportsHint(atom_cache_.GetAtom("_NET_ACTIVE_WINDOW")); |
+ } |
} |
X11DesktopHandler::~X11DesktopHandler() { |