Index: ash/shell/window_watcher.cc |
diff --git a/ash/shell/window_watcher.cc b/ash/shell/window_watcher.cc |
index 990cef1e949d1a200da5bcff02065b771875412b..f5b194c56b07425a144dbdf373f1d86bda30d86f 100644 |
--- a/ash/shell/window_watcher.cc |
+++ b/ash/shell/window_watcher.cc |
@@ -13,6 +13,7 @@ |
#include "ash/shell.h" |
#include "ash/shell/window_watcher_shelf_item_delegate.h" |
#include "ash/shell_window_ids.h" |
+#include "ash/wm/window_util.h" |
#include "ui/aura/window.h" |
#include "ui/aura/window_event_dispatcher.h" |
#include "ui/gfx/display.h" |
@@ -90,8 +91,7 @@ aura::Window* WindowWatcher::GetWindowByID(ash::ShelfID id) { |
// aura::WindowObserver overrides: |
void WindowWatcher::OnWindowAdded(aura::Window* new_window) { |
- if (new_window->type() != ui::wm::WINDOW_TYPE_NORMAL && |
- new_window->type() != ui::wm::WINDOW_TYPE_PANEL) |
+ if (!wm::IsWindowUserPositionable(new_window)) |
return; |
static int image_count = 0; |