Skip to content

copy-on-select = clipboard causes "Copied to clipboard" toast spam #4800

@mitchellh

Description

@mitchellh

Discussed in #4766

Originally posted by dumbasPL January 7, 2025
host: Arch Linux, GNOME 47 on Wayland
version: 1.0.2-main+a3837a1e (built from source)
simplified config (without theming):

shell-integration-features = no-cursor
copy-on-select = clipboard
scrollback-limit = 134217728
adw-toolbar-style = raised-border
auto-update = off
term = xterm-256color

steps to reproduce:

  1. enable copy-on-select = clipboard
  2. select something by clicking and dragging the mouse
  3. observe Copied to clipboard spam at the bottom

expected behavior:
Copied to clipboard shows once the selection has ended (when the mouse button is lifted)

Solution

I think we should also look into the core here (src/Surface.zig) to see if we should only apply the selection when a mouse release event happens.

We should probably also change the GTK implementation to only show the toast after a very short (50ms or so) delay.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributor friendlyA well-scoped, approachable issue for someone looking to contributor.guiGUI or app issue regardless of platform (i.e. Swift, GTK)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions