Page 1 of 1

Middle click paste in XFCE? <>SOLVED>

Posted: Sat Mar 07, 2015 3:02 am
by jimallyn
I recently installed Mint 17.1 XFCE on an older computer for a friend of mine. This is my first experience with XFCE, and I notice there seems to be one thing missing: using the middle button, or both left and right buttons simultaneously, to paste text. I looked through the Settings, but couldn't find anything to enable this. Will XFCE even do this?

Re: Middle click paste in XFCE?

Posted: Sat Mar 07, 2015 4:31 am
by xenopeek
It's an X11 feature, with works on all desktop environments. If it's not working, that's either because mouse is kaput or because you've used xmodmap or similar to remap mouse buttons. Perhaps there can be another reason.

You could test if the button is working correctly with xev:

Code: Select all

xev
Or a little easier by limiting output:

Code: Select all

xev | grep -A 2 ButtonPress
When I click left, middle, right (button 1, 2, 3) in the test window this is the output of that command:

Code: Select all

ButtonPress event, serial 36, synthetic NO, window 0x1a00001,
    root 0xa3, subw 0x0, time 1695877, (72,96), root:(112,201),
    state 0x0, button 1, same_screen YES
--
ButtonPress event, serial 36, synthetic NO, window 0x1a00001,
    root 0xa3, subw 0x0, time 1696538, (72,96), root:(112,201),
    state 0x0, button 2, same_screen YES
--
ButtonPress event, serial 36, synthetic NO, window 0x1a00001,
    root 0xa3, subw 0x0, time 1696988, (72,96), root:(112,201),
    state 0x0, button 3, same_screen YES
--

Re: Middle click paste in XFCE?

Posted: Sat Mar 07, 2015 4:58 am
by jimallyn
Nope, haven't used xmodmap. (Never heard of xmodmap until now.) The mouse works fine for everything else, and it all checks out in xev. It just doesn't work to paste text.

...

Hmmm. Just tried it again, and it worked. Well, middle click worked, but both left and right buttons simultaneously doesn't work. I wonder what is going on?

Re: Middle click paste in XFCE?

Posted: Sat Mar 07, 2015 5:24 am
by xenopeek
Middle click emulation with left+right click is probably configurable somewhere in Xfce settings. I don't think that would be enabled by default if you have a physical middle button/clickwheel.

Re: Middle click paste in XFCE?

Posted: Sat Mar 07, 2015 8:52 am
by Gerapa
I have no solution, but i have tried that in my LM 17.1 Xfce :
Middle click pastes, but left and right click have no effect.
I have'nt changed anything in the configuration.

Re: Middle click paste in XFCE?

Posted: Sat Mar 07, 2015 9:05 am
by richyrich
LM 17 Qiana Xfce here, and I can highlight text with a left mouse drag, and a middle-click pastes the highlighted text to another location as expected.

Re: Middle click paste in XFCE?

Posted: Tue Jun 09, 2015 4:53 pm
by Wiikend
Gerapa wrote:I have no solution, but i have tried that in my LM 17.1 Xfce :
Middle click pastes, but left and right click have no effect.
I have'nt changed anything in the configuration.
You should have a setting called "Emulate middle click by clicking both left and right buttons" in your settings. I have Linux Mint 17.1 Cinnamon, and I can find it under "Mouse and Touchpad".
Mouse settings.png
I wish I could trade the middle-mouse-paste behavior for just having universal scroll everywhere, lol.

Re: Middle click paste in XFCE?

Posted: Wed Jun 10, 2015 9:46 pm
by Buzzsaw
Wiikend wrote:You should have a setting called "Emulate middle click by clicking both left and right buttons" in your settings. I have Linux Mint 17.1 Cinnamon, and I can find it under "Mouse and Touchpad".
Thanks for your tip, but Xfce doesn't have that setting.

Re: Middle click paste in XFCE?

Posted: Sat Jun 13, 2015 11:24 am
by MtnDewManiac
xenopeek wrote:Middle click emulation with left+right click is probably configurable somewhere in Xfce settings. I don't think that would be enabled by default if you have a physical middle button/clickwheel.
I've never encountered such a setting, but have always assumed it to be enabled by default (as it appears to have been on the laptops/distros I've used since I found out about it a few years ago).

Might this be something that depends on the application/situation? If I "middle-click" (tap both buttons at the same time) on my desktop, it opens the workspace switcher(?) menu. If I do the same on a link on a web page (or my bookmarks list) in Firefox, it opens the link in a new tab. OtOH, if I have previously copied some bit of text and "middle-click" in Firefox's address bar, it pastes the text. But when I did so just now in this message entry box, nothing happened. Nothing happens when I do it in gedit, either.

Regards,
MDM

Re: Middle click paste in XFCE?

Posted: Wed Jun 13, 2018 4:24 pm
by jimallyn