Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
macOS: Implement NSViewContentSelectionInfo protocol for Writing Tools
The protocol is documented (in the header) to be used for context menu placement, but is also used for placement of the Writing Tools dialog. We don't have a way to request the selection rectangle via our input method protocol, so for now we have to use some crude heuristics based on the cursor and anchor rectangle. This quickly falls apart for multi line selections, but should not be any worse than the behavior we have today where we effectively report the entire QWindow rect, placing the Writing Tools popup outside the window. With this patch we at least place the popup relative to the focus widget. Pick-to: 6.8 Change-Id: I28053aab93a42133ae2ccc552fcb4172bf55a634 Reviewed-by: Jan Arve Sæther <[email protected]>
- Loading branch information