Skip to content

fix: copy selection to primary buffer for middle-click paste#1679

Open
cantona wants to merge 2 commits into
raphamorim:mainfrom
cantona:fix/middle-click-paste
Open

fix: copy selection to primary buffer for middle-click paste#1679
cantona wants to merge 2 commits into
raphamorim:mainfrom
cantona:fix/middle-click-paste

Conversation

@cantona

@cantona cantona commented Jun 25, 2026

Copy link
Copy Markdown

On mouse drag-release the selection was only copied to the clipboard (and only when copy-on-select was enabled), never to the primary selection buffer, so middle-click paste had nothing to paste. Always mirror the selection into the primary buffer on release, matching standard X11/Wayland behavior. copy_selection is a no-op on an empty selection.

cantona and others added 2 commits June 25, 2026 13:56
On a normal mouse drag-release the selection was only copied to the
clipboard (and only when copy-on-select was enabled), never to the
primary selection buffer. As a result middle-click paste had nothing to
paste. Always mirror the selection into the primary buffer on release,
matching standard X11/Wayland behavior; copy_selection is a no-op for an
empty selection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant