Support middle mouse paste on Linux

Adds for pasting the selection clipboard on middle mouse button on Linux.

Closes #2244
Closes #2272
Closes #3027