Live data from Hacker News

With Firefox on X11, any page can pastejack you anytime (middle button paste)

openwall.com

151–160 of 195 posts

Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)

#151
post #31

The X “primary selection”/middle click paste behavior this takes advantage of is one of my least favorite Linux features and I have had it disabled for years, so I didn’t even know it had been changed/removed in Wayland. Having a single mouse button (that often has other functionality like autoscroll in Firefox) cause text highlighted in another app to paste in the focused app is super unintuitive to me, and caused a…

It's the single greatest feature of any Unix desktop. Click and drag to select a section, or double click to select a word, or triple click to select a line, then middle click to paste. All without leaving the mouse or the touchpad. I buy laptops with physical mouse keys by the touchpad to middle click easily.

Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)

#152
post #31

The X “primary selection”/middle click paste behavior this takes advantage of is one of my least favorite Linux features and I have had it disabled for years, so I didn’t even know it had been changed/removed in Wayland. Having a single mouse button (that often has other functionality like autoscroll in Firefox) cause text highlighted in another app to paste in the focused app is super unintuitive to me, and caused a…

I cannot stand any Operating System that does not utilize left-click highlight and middle click paste. This is great secondary buffer to the clipboard Ctrl+C && Ctrl+V. I HATE the middle click scrolling feature that Windows uses, it is not user-friendly and not needed in the age of the scroll-wheel. Another reason you have to pay me to use Windows.

Middle click scrolling is awesome.

Windows now has clipboard history by pasting with Win+V, having the best of both worlds.

I'm sorry you can't adapt, but honesty no one cares =)

Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)

#153

Earlier quoted context omitted.

Having two clipboards is a bad decision. Also, trackpad doesn't have middle button.

Yep; I often wish there were three buffers! All trackpads I've tried support middle click via a three-finger tap.

My trackpad supports all clicks with physical buttons :-)

https://www.notebookcheck.net/Review-HP-ZBook-15-Workstation...

I disabled tap to click and all gestures except two finger scrolling.

Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)

#154

Earlier quoted context omitted.

Not OP, but I can say that it is a mode, which is its problem. You enter into the scroll mode and while not difficult per se to exit it can cause confusion. It is also pretty superfluous in the age of the touchpad and the ubiquity of the scroll wheel. Just another example of Microsoft working really hard to make Windows 11 look simpler, but not working on making it meaningfully simpler.

I don't know when middle-click scroll was introduced, but it definitely was before Windows 11, and at least as far back as 7. Also, "no modes" is both a question of personal preference and a sliding scale. Input-has-focus is a mode, too, but getting rid of that would be an obvious mistake.

Middle-click scroll was a feature of the Windows 3.1 drivers for a Logitech TrackMan I bought in 1994 or so.

Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)

#155

Earlier quoted context omitted.

Yeah, I absolutely hate it. MacOS is the only system with sane handling of copying and pasting, because it doesn't have that obnoxious thing and it doesn't overload the ctrl key. Command+C doesn't interfere with ctrl+C in terminals. Copying should always be deliberate, not something that blasts out your clipboard when you click in the wrong place and select something unintentionally. And middle click is for opening t…

> not something that blasts out your clipboard when you click in the wrong place and select something unintentionally This isn't helped by the fact that the mainstream desktop OSes don't have proper clipboard managers bundled by default. Accidentally copying something isn't as big a deal when you have the most recent 200 items you've copied in an easily searchable widget.

Windows has clipboard history

Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)

#156
post #31

The X “primary selection”/middle click paste behavior this takes advantage of is one of my least favorite Linux features and I have had it disabled for years, so I didn’t even know it had been changed/removed in Wayland. Having a single mouse button (that often has other functionality like autoscroll in Firefox) cause text highlighted in another app to paste in the focused app is super unintuitive to me, and caused a…

Yeah, I absolutely hate it. MacOS is the only system with sane handling of copying and pasting, because it doesn't have that obnoxious thing and it doesn't overload the ctrl key. Command+C doesn't interfere with ctrl+C in terminals. Copying should always be deliberate, not something that blasts out your clipboard when you click in the wrong place and select something unintentionally. And middle click is for opening t…

> And middle click is for opening tabs.

Learning that you can middle click on the back/forward/refresh buttons to open the previous/next/current page (respectively) in a new tab was a game changer for me

Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)

#157
post #31

The X “primary selection”/middle click paste behavior this takes advantage of is one of my least favorite Linux features and I have had it disabled for years, so I didn’t even know it had been changed/removed in Wayland. Having a single mouse button (that often has other functionality like autoscroll in Firefox) cause text highlighted in another app to paste in the focused app is super unintuitive to me, and caused a…

Yeah, I absolutely hate it. MacOS is the only system with sane handling of copying and pasting, because it doesn't have that obnoxious thing and it doesn't overload the ctrl key. Command+C doesn't interfere with ctrl+C in terminals. Copying should always be deliberate, not something that blasts out your clipboard when you click in the wrong place and select something unintentionally. And middle click is for opening t…

[deleted]

Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)

#158
post #99

> For firefox running in Wayland, `writeXPrimary()` will only succeed when the firefox window (the main window, not necessarily the tab the code runs in) has the focus. Otherwise the selection will be cleared. At first I assumed that this is something specific to the Wayland protocol, but that turned out to be utterly false; it's just some quirk, bug or "feature" specific to either firefox itself or GTK. Most Wayland…

> Additionally, the Wayland protocol carries an event identifier, so that the compositor can tie the clipboard request to a pointer/keyboard/touch event and take a better decision. That's actually not the case. There's a serial number that the client provides when they want to set the selection (that is, cut/copy)[0][1], but nothing when a client requests a paste[2][3]. I always thought this is weird; while yes, it's…

By "clipboard request", I meant "request to set the clipboard".

Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)

#159
post #76

You can set clipboard.autocopy to false in about:config to disable this. It breaks the example, at least. EDIT: I thought the behavior was preserved for textareas, as the comment box here still copied on select. But it suddenly disabled it here too. Restarting the browser is probably a safe bet :)

This is very useful, thanks. With a clipboard manager like Clipman you can tick 'Ignore mouse selections'.

Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)

#160

Earlier quoted context omitted.

> not something that blasts out your clipboard when you click in the wrong place and select something unintentionally This isn't helped by the fact that the mainstream desktop OSes don't have proper clipboard managers bundled by default. Accidentally copying something isn't as big a deal when you have the most recent 200 items you've copied in an easily searchable widget.

Windows has clipboard history

Oh, I missed that! I've been mostly on Linux since before Windows 10.
Post reply on HN