Commit 0b15f2c7 authored by oshima@chromium.org's avatar oshima@chromium.org

Take overscan into account when handling passive grab

BUG=None

Review URL: https://codereview.chromium.org/270803002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269514 0039d316-1c4b-4281-b951-d872f2087c98
parent 9be32acf
......@@ -340,7 +340,7 @@ void AshWindowTreeHostX11::TranslateAndDispatchLocatedEvent(
aura::client::ScreenPositionClient* screen_position_client =
aura::client::GetScreenPositionClient(root_window);
gfx::Rect local(bounds().size());
local.Inset(transformer_helper_.GetHostInsets());
if (screen_position_client && !local.Contains(event->location())) {
gfx::Point location(event->location());
// In order to get the correct point in screen coordinates
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment