summaryrefslogtreecommitdiffstats
path: root/ui/aura/desktop.cc
diff options
context:
space:
mode:
authorderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-19 18:39:32 +0000
committerderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-19 18:39:32 +0000
commit9ba7ecff6a57698997034078f958e8c1939d1305 (patch)
treeddd8135e87ba0cdb47d84e42a98ab144092a59db /ui/aura/desktop.cc
parent02b07597e4f57acdb199fae72a0e776bbc490fb4 (diff)
downloadchromium_src-9ba7ecff6a57698997034078f958e8c1939d1305.zip
chromium_src-9ba7ecff6a57698997034078f958e8c1939d1305.tar.gz
chromium_src-9ba7ecff6a57698997034078f958e8c1939d1305.tar.bz2
aura: Requery pointer position after host window resize.
This makes us requery the pointer position so we can constrain the cached position within the host window. BUG=100087 TEST=none Review URL: http://codereview.chromium.org/8344032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106337 0039d316-1c4b-4281-b951-d872f2087c98
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 {