summaryrefslogtreecommitdiffstats
path: root/ui/aura/desktop.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/aura/desktop.cc')
-rw-r--r--ui/aura/desktop.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/aura/desktop.cc b/ui/aura/desktop.cc
index 92ec22d..d48f0d0 100644
--- a/ui/aura/desktop.cc
+++ b/ui/aura/desktop.cc
@@ -84,6 +84,8 @@ void Desktop::ShowDesktop() {
void Desktop::SetHostSize(const gfx::Size& size) {
host_->SetSize(size);
+ // Requery the location to constrain it within the new desktop size.
+ last_mouse_location_ = host_->QueryMouseLocation();
}
gfx::Size Desktop::GetHostSize() const {