summaryrefslogtreecommitdiffstats
path: root/ash/shell/launcher_delegate_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/shell/launcher_delegate_impl.cc')
-rw-r--r--ash/shell/launcher_delegate_impl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ash/shell/launcher_delegate_impl.cc b/ash/shell/launcher_delegate_impl.cc
index ec97cd7..4e54600 100644
--- a/ash/shell/launcher_delegate_impl.cc
+++ b/ash/shell/launcher_delegate_impl.cc
@@ -32,7 +32,8 @@ void LauncherDelegateImpl::OnBrowserShortcutClicked(int event_flags) {
void LauncherDelegateImpl::ItemClicked(const ash::LauncherItem& item,
const ui::Event& event) {
aura::Window* window = watcher_->GetWindowByID(item.id);
- ash::launcher::MoveToEventRootIfPanel(window, event);
+ if (window->type() == aura::client::WINDOW_TYPE_PANEL)
+ ash::wm::MoveWindowToEventRoot(window, event);
window->Show();
ash::wm::ActivateWindow(window);
}