While fixing a problem with a Wayland app I noticed that the programm got a notification from a Wayland fd whenever I selected some text in any other window (not belonging to the app) and was able to read the contents of the selection.

As I’m not a fan of sharing data without explicit actions (so Ctrl+C, Ctrl+V), is there a way to disable this behaviour of Wayland?

OS info: Fedora 43 KDE

  • Telorand@reddthat.com
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    11 hours ago

    I thought this was an old feature of Linux (maybe Unix?). Highlighted text gets copied to the buffer, which is useful when you’re on the command line (because Ctrl+C ends the current process).

    I don’t know how you’d change this, but maybe that can give you some clues on what to do.

    • dohpaz42@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      9 hours ago

      It’s been a hot minute, but wasn’t what you’re referring to done by a third-party app? The original consoles had no real concept of a mouse by default, let alone copy/paste from highlighted text. Any highlighting inside an app (e.g. vi/m) was buffered by the app and not the OS?

      • Ephera@lemmy.ml
        link
        fedilink
        English
        arrow-up
        3
        ·
        7 hours ago

        It was implemented as part of the X11 standard, so the concrete program would’ve been X.org

      • Telorand@reddthat.com
        link
        fedilink
        arrow-up
        2
        ·
        9 hours ago

        I thought text selection was handled via keyboard. Also been a hot minute since I first learned about this, and not using that buffer has not exactly been a common discussion point, since being able to reuse text is typically a desirable trait!