Skip to content

copy_on_select doesn't work without first focusing Kitty #6095

@mburz

Description

@mburz

Given the following configuration in Kitty:

copy_on_select clipboard
mouse_map left click ungrabbed no-op
mouse_map left press ungrabbed mouse_selection normal

copy_on_select works as expected, when Kitty is focused.
When the focus resides on a different application, selecting text with the mouse inside of Kitty will also focus Kitty, and the text selection works as expected, but the selected text is not copied to the clipboard or primary selection. Same feature works as expected using other terminals. First clicking on Kitty then selecting the text also works as expected.

The issue is reproducible using kitty 0.21.2 bundled with Ubuntu and kitty 0.27.1 released on GitHub.
The issue is also reproducible using kitty --config NONE with both of these versions.
Tried on Ubuntu 22.04 and 22.10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions