Chromium Code Reviews| 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..df4276240a6181c1d831ac27d988d198cdee2ad4 100644 |
| --- a/ui/views/widget/desktop_aura/x11_desktop_handler.cc |
| +++ b/ui/views/widget/desktop_aura/x11_desktop_handler.cc |
| @@ -58,8 +58,12 @@ X11DesktopHandler::X11DesktopHandler() |
| attr.your_event_mask | PropertyChangeMask | |
| StructureNotifyMask | SubstructureNotifyMask); |
| + // Some window managers (e.g. wmii) say they support _NET_ACTIVE_WINDOW but |
| + // do not. See http://crbug.com/417767 |
| + XID active_window; |
| wm_supports_active_window_ = |
| - ui::WmSupportsHint(atom_cache_.GetAtom("_NET_ACTIVE_WINDOW")); |
| + ui::WmSupportsHint(atom_cache_.GetAtom("_NET_ACTIVE_WINDOW")) && |
| + ui::GetXIDProperty(x_root_window_, "_NET_ACTIVE_WINDOW", &active_window); |
|
sadrul
2014/09/25 20:41:48
What if chrome is the first app the user launches?
|
| } |
| X11DesktopHandler::~X11DesktopHandler() { |