Commit 4cca65ae authored by thomasanderson's avatar thomasanderson Committed by Commit bot

X11: Don't Activate() on Show()

CL 08b6593d added a workaround to make focus work in the case of no
window manager.  This is no longer necessary now that the new
focus-tracking algorithm keeps track of has_pointer_focus_.

BUG=546854

Review-Url: https://codereview.chromium.org/2295443002
Cr-Commit-Position: refs/heads/master@{#415421}
parent b92365ec
...@@ -572,13 +572,6 @@ void DesktopWindowTreeHostX11::ShowWindowWithState( ...@@ -572,13 +572,6 @@ void DesktopWindowTreeHostX11::ShowWindowWithState(
break; break;
} }
// Makes the window activated by default if the state is not INACTIVE or
// MINIMIZED.
if (show_state != ui::SHOW_STATE_INACTIVE &&
show_state != ui::SHOW_STATE_MINIMIZED) {
Activate();
}
native_widget_delegate_->AsWidget()->SetInitialFocus(show_state); native_widget_delegate_->AsWidget()->SetInitialFocus(show_state);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment