Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wayland: no longer reset kTouchPress serial on touch-up
Under Wayland, 'set_selection' requests require a serial number corresponding to a recent input event (eg: mouse press, key press, touch tap, etc). OTOH, kTouchPress serial is reset upon wl_touch.up, which leads to no-op when trying to write to clipboard when, handling a touch-tap (ie: touch down followed by a touch up), for example. Another example is when clipboard writes are triggered asynchronously, eg: touch down coming from a renderer process. This CL fixes it by no longer resetting kTouchPress upon touch-up Wayland event, which should not cause issues as, nowadays, compositors usually only check whether a received serial is "not too old". It also should not lead to bad side effects at ozone/wayland code as long as SerialTracker is not used to determine whether there are active touch points, for example. Additionally, clipboard unit tests are fixed and improved to correctly exercise these edge cases. R=msisov@igalia.com Bug: 1282220 Test: Covered by WaylandClipboardTest in ozone_unittests Change-Id: Ib6305accf1fd542b80711730c654b0a1e51b6ded Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3527605 Reviewed-by: Maksim Sisov <msisov@igalia.com> Commit-Queue: Nick Yamane <nickdiego@igalia.com> Cr-Commit-Position: refs/heads/main@{#983748}
- Loading branch information
Showing
15 changed files
with
198 additions
and
80 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
Oops, something went wrong.