Hello Wouter,
I acknowledge that you’re looking for a setting for middle-click-paste in Linux that can be turned off by users.
As of now, there isn't a built-in option within MATLAB's preferences to disable the middle mouse button paste functionality specifically within the MATLAB editor on Linux systems. This feature is generally tied to the X Window System (X11) on Linux and is a standard behavior across many applications.
A possible workaround can be to use ‘xmodmap’ to disable the middle mouse button. This is not specific to MATLAB but will affect all applications, which may or may not be desirable. To do this, you can run the following command in your terminal:
xmodmap -e "pointer = 1 0 3"
This command will effectively disable the middle mouse button.
Hope this helps!