Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: ui/views/controls/button/custom_button.cc

Issue 2925853002: Flag mouse messages received when cursor is hidden.
Patch Set: Rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/animation/ink_drop_host_view.cc ('k') | ui/views/corewm/tooltip_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/custom_button.cc
diff --git a/ui/views/controls/button/custom_button.cc b/ui/views/controls/button/custom_button.cc
index 4ed90e2918ab4cc41cfb83aa30882fe62feafba9..b2c0122d112f9ff2a6efdbe086def0fa51c9f604 100644
--- a/ui/views/controls/button/custom_button.cc
+++ b/ui/views/controls/button/custom_button.cc
@@ -498,7 +498,8 @@ bool CustomButton::ShouldEnterHoveredState() {
}
#endif
- return check_mouse_position && IsMouseHovered();
+ return check_mouse_position && IsMouseHovered() &&
+ !ui::IsWindowsCursorHidden();
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « ui/views/animation/ink_drop_host_view.cc ('k') | ui/views/corewm/tooltip_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698