-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[X11] Keep WindowCache alive for a time interval
GetWindowAtScreenPoint() is called under certain conditions when Chrome has mouse capture (eg. when a menu is showing, but not when the mouse is clicked in web UI). Creating a WindowCache on the stack is not practical since it's difficult to separate the cases where a WindowCache will be needed. Also extra logic would have to be added to ensure 2 WindowCache's are not active at once. Therefore, this CL switches to a simple timing based solution where a WindowCache will be kept alive for 3 seconds after a call to GetWindowAtScreenPoint(). R=sky Bug: 739898 Change-Id: I29053cd2ad5cdc4ff3e8cc6d4ef3979222976b59 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3565227 Reviewed-by: Scott Violet <sky@chromium.org> Commit-Queue: Thomas Anderson <thomasanderson@chromium.org> Cr-Commit-Position: refs/heads/main@{#988192}
- Loading branch information
1 parent
a1aa8ab
commit bbc20a9
Showing
4 changed files
with
54 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters