Index: ash/root_window_controller.cc |
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc |
index c8a3aba4190c0921ebbcc21bb83d5ef3a5165c26..3a5733ed3984ef2d98532e3db4ca8cc84fb20e8b 100644 |
--- a/ash/root_window_controller.cc |
+++ b/ash/root_window_controller.cc |
@@ -613,8 +613,7 @@ const aura::Window* RootWindowController::GetWindowForFullscreenMode() const { |
GetContainer(kShellWindowId_DefaultContainer)->children(); |
for (aura::Window::Windows::const_reverse_iterator iter = windows.rbegin(); |
iter != windows.rend(); ++iter) { |
- if (((*iter)->type() == ui::wm::WINDOW_TYPE_NORMAL || |
- (*iter)->type() == ui::wm::WINDOW_TYPE_PANEL) && |
+ if (wm::IsWindowUserPositionable(*iter) && |
(*iter)->layer()->GetTargetVisibility()) { |
topmost_window = *iter; |
break; |