summaryrefslogtreecommitdiffstats
path: root/ash/wm/gestures/system_pinch_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/wm/gestures/system_pinch_handler.cc')
-rw-r--r--ash/wm/gestures/system_pinch_handler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ash/wm/gestures/system_pinch_handler.cc b/ash/wm/gestures/system_pinch_handler.cc
index 806f4f9..39a733b 100644
--- a/ash/wm/gestures/system_pinch_handler.cc
+++ b/ash/wm/gestures/system_pinch_handler.cc
@@ -6,6 +6,7 @@
#include "ash/launcher/launcher.h"
#include "ash/screen_ash.h"
+#include "ash/shelf/shelf_widget.h"
#include "ash/shell.h"
#include "ash/wm/property_util.h"
#include "ash/wm/window_util.h"
@@ -131,7 +132,7 @@ gfx::Rect SystemPinchHandler::GetPhantomWindowScreenBounds(
Launcher* launcher = Launcher::ForWindow(window);
gfx::Rect rect = launcher->GetScreenBoundsOfItemIconForWindow(target_);
if (rect.IsEmpty())
- rect = launcher->widget()->GetWindowBoundsInScreen();
+ rect = launcher->shelf_widget()->GetWindowBoundsInScreen();
else
rect.Inset(-8, -8);
phantom_state_ = PHANTOM_WINDOW_MINIMIZED;