Some projects keep surprising me with their “solutions,” and this is one of those cases. A proposal under review by developers from GNOME and Mozilla could change how middle-mouse-button paste behaves on Linux and other Unix-like systems.

The discussions, visible in Mozilla’s Phabricator revision D277804 and a linked GNOME gsettings-desktop-schemas merge request, focus on disabling the traditional primary selection paste by default.

Mozilla proposes changing the default behavior of the Firefox browser on Unix builds so that pressing the middle mouse button no longer pastes text by default. The author of the revision frames the current behavior as a source of confusion and accidental pastes, especially when users press the middle button without expecting the clipboard contents to be inserted into text fields.

  • bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 month ago

    TBH, I’ve seen this cause more confusion in people than being considered helpful. Ctrl+V/Cmd+V are universally understood and behave predictably. Middle mouse click not so much. (Did you know there are two clipboards on Linux and MMB only pastes from one of them?)

    • Odo@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month ago

      A few years ago when I tried switching, this drove me nuts. It’s so unintuitive coming from Windows where I use middle mouse all the time in browsers.

    • mmmm@sopuli.xyz
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      I’m pretty sure people who use MMB do know that it uses one of the two clipboards in Linux. Hence the reason they use it.

      That being said, I find baffling that they are not setting this as an optional feature but just outright disabling it.

        • Vorpal@programming.dev
          link
          fedilink
          arrow-up
          0
          arrow-down
          1
          ·
          1 month ago

          Not true, if there is no user visible setting for it. Changing a hidden gsetting via a command line is essentially removing it since it will likely bitrot and then be fully removed in a few years.

          • wizardbeard@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 month ago

            It is currently a hidden setting in Firefox’s about:config. They are removing it from there and no longer controlling it within Firefox itself so it will follow the setting set in you window manager (probably have the wrong term here, haven’t had my coffee yet), which is (generally) not hidden and available through a settings GUI. So you won’t have a web browser having different functionality than elsewhere on your machine.

            If it’s hidden at that point, blame the window manager/desktop environment/whatever it’s called.

          • tyler@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            1 month ago

            Since copy on highlight is default you literally just have to accidentally drag your mouse cursor in a terminal window and boom, you’ve copied empty text. It’s incredibly annoying.

      • The_Decryptor@aussie.zone
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 month ago

        They’re called “selections”, the main ones being PRIMARY and CLIPBOARD, and it’s effectively a form of IPC mediated by X. When you select something, that goes into the PRIMARY selection, while when you copy something, it goes into both PRIMARY and CLIPBOARD.

        The problem is that “middle mouse click” isn’t actually paste, it’s “insert primary selection”. As long as they’re in sync you won’t notice any issue (Ctrl+V and MMB will both insert the same content), as soon as they’re out of sync you’re suddenly exposed to an implementation detail of the X11 protocol.

        And it’s easy to go out of sync, simply copy something and then select unrelated text, now Ctrl+V and MMB will output different things. It can be useful, e.g. if you’re having to copy a bunch of different pieces of text from one window to another, you can simply select and MMB, no keyboard needed, but it’s not intuitive IMO, and conflicts with modern usage of the middle mouse button (Get it wrong when trying to open a link in a new tab and you’ll dump whatever text you last selected into the site instantly)

        Also, these selections aren’t a thing under Wayland, it’s been re-implemented as a normal paste operation there. The question is actually whether the middle mouse button should be treated like any other mouse button or have this special behaviour by default. My vote is to expose it via the mouse settings applet and leave it up to users, like any other special mouse button.

  • ryper@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 month ago

    Not mentioned in the OP is that both discussions include a setting to enable middle mouse button paste for those who want it; it will just be off by default. Everyone calm down.

  • spartanatreyu@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    1 month ago

    What’s with all the complaints here?

    New users expect middle click to bring up an auto-scroll widget instead of pasting by default.

    You can set up your computer how ever you want.

    Want auto-scroll? Set it to auto-scroll.

    Want paste? Set it to paste.

    The first thing you do on a new system is set up the computer how you want.

    No one’s taking anything away from you.

    • tyler@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      agreed. and middle click being paste has to be one of the stupidest defaults. I understand people use it, and whatever, everyone has their own workflow, but now middle click to drag doesn’t work and you’ve confused everyone since now it’s different everywhere.

  • Lvxferre [he/him]@mander.xyz
    link
    fedilink
    arrow-up
    1
    ·
    1 month ago

    Okay. I could spend hours and hours criticising GNOME for a lot of things, but this is not one of them. It is not removing functionality, as the article implies; as others here highlighted, it’s simply changing a default. That’s completely fine.

    • morto@piefed.social
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      Gnome also spends time making posts bashing on developers who create alternative DEs, and mozilla also spends time thinking about how to put more ai in firefox