Clipboard refactor #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "clipboard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There's a discrepency where the entry widget calls MwLLGetClipboard upon getting Ctrl+V, but the Wayland platform invokes that on its own, something it needs to do because otherwise the entry widget doesn't check for middle click pastes on platforms that use it.
This PR fixes this by having the entry widget handle middle click paste on platforms that support it. To do this, it also accommodates for the fact that on Wayland there are two clipboards: the normal clipboard that is invoked upon ctrl+v, and a "primary clipboard" that emulates X11's middle click keyboard (which is not avaliable on every compositor because this is an unstable protocol).
Changes:
mouse_upfor a middle click and then invokes the primary keyboard, but only if the platform supports it and is currently being used. Otherwise, it just invokes MwForceRender2 as before.Also this adds the MwClipboard stuff into milsko.xml