I am experiencing a weird phenomenon recently. Usually, when we select any text anywhere (browser, files, terminal) it gets copied to the clipboard and can be pasted upon clicking the middle button (wheel in my case). This used to work for me earlier, but recently, this feature has stopped working for the terminal.
For instance, when I select any text in the terminal and then middle click the mouse, what gets pasted is the last selection that was done in the browser (firefox) but not the recent/expected terminal selection. The feature works as expected for browser-only copy pastes, i.e., if I select any text from browser and middle click in the browser itself it pastes the correct selection.
I am using Gnome on Ubuntu with Xorg. Any fix?