Commit a39dc844 authored by flackr@chromium.org's avatar flackr@chromium.org

Only maximize on double left click.

BUG=115514
TEST=Double middle or right click on the window title bar. The window should no longer maximize.

Review URL: https://chromiumcodereview.appspot.com/9555001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124409 0039d316-1c4b-4281-b951-d872f2087c98
parent 0bc353c2
......@@ -58,7 +58,9 @@ bool ToplevelWindowEventFilter::PreHandleMouseEvent(aura::Window* target,
} else {
window_resizer_.reset();
}
if (component == HTCAPTION && event->flags() & ui::EF_IS_DOUBLE_CLICK)
if (component == HTCAPTION &&
event->flags() & ui::EF_IS_DOUBLE_CLICK &&
event->flags() & ui::EF_LEFT_MOUSE_BUTTON)
ToggleMaximizedState(target);
return WindowResizer::GetBoundsChangeForWindowComponent(component) != 0;
}
......
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