| 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 d32192b27be50aa19c72d7ca84314481a5f4435b..2ffd324809e0c2cdf79f893709b8cc223ebce3cf 100644
|
| --- a/ui/views/widget/desktop_aura/x11_desktop_handler.cc
|
| +++ b/ui/views/widget/desktop_aura/x11_desktop_handler.cc
|
| @@ -134,11 +134,13 @@ bool X11DesktopHandler::IsActiveWindow(::Window window) const {
|
| void X11DesktopHandler::ProcessXEvent(XEvent* event) {
|
| switch (event->type) {
|
| case FocusIn:
|
| - if (current_window_ != event->xfocus.window)
|
| + if (!wm_supports_active_window_ &&
|
| + current_window_ != event->xfocus.window)
|
| OnActiveWindowChanged(event->xfocus.window, ACTIVE);
|
| break;
|
| case FocusOut:
|
| - if (current_window_ == event->xfocus.window)
|
| + if (!wm_supports_active_window_ &&
|
| + current_window_ == event->xfocus.window)
|
| OnActiveWindowChanged(None, NOT_ACTIVE);
|
| break;
|
| default:
|
|
|