wm: Avoid focusing windows in response to scrolling.
This makes us only install grabs for buttons 1-3 (instead of
for all buttons) on unfocused windows, and also makes the
layout manager ignore scrollwheel events on the windows at
the edges of the screen in overlapping-windows mode.
BUG=chromium-os:19770
TEST=added tests; also manually tested by checking that a focused panel keeps the focus when i scroll in browser window and vice versa
Change-Id: I2ea7b844d6e9c458ec8d5ab28e6eae69410d865c
Reviewed-on: http://gerrit.chromium.org/gerrit/7045
Reviewed-by: David Reveman <reveman@chromium.org>
Tested-by: Daniel Erat <derat@chromium.org>
11 files changed