Chromium Code Reviews| Index: ui/wm/core/compound_event_filter.cc |
| diff --git a/ui/wm/core/compound_event_filter.cc b/ui/wm/core/compound_event_filter.cc |
| index 8942dfdfeb091afa3e561c57aad2ca03d4f451c6..0e655257a32558c86f56f84a353eda1b35b61389 100644 |
| --- a/ui/wm/core/compound_event_filter.cc |
| +++ b/ui/wm/core/compound_event_filter.cc |
| @@ -218,7 +218,8 @@ void CompoundEventFilter::OnMouseEvent(ui::MouseEvent* event) { |
| event->type() == ui::ET_MOUSE_PRESSED || |
| event->type() == ui::ET_MOUSEWHEEL)) { |
| SetMouseEventsEnableStateOnEvent(window, event, true); |
| - SetCursorVisibilityOnEvent(window, event, true); |
| + SetCursorVisibilityOnEvent(window, event, |
| + !(event->flags() & ui::EF_DIRECT_INPUT)); |
|
sadrul
2016/08/23 06:28:47
Should this look at the pointer-type instead?
|
| UpdateCursor(window, event); |
| } |