Middle click paste in XFCE? <>SOLVED>

Forum rules
Before you post please read how to get help
Post Reply
User avatar
jimallyn
Level 18
Level 18
Posts: 8136
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Middle click paste in XFCE? <>SOLVED>

Post by jimallyn » Sat Mar 07, 2015 3:02 am

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?
Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan

User avatar
xenopeek
Level 24
Level 24
Posts: 22483
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Middle click paste in XFCE?

Post by xenopeek » Sat Mar 07, 2015 4:31 am

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
--
Image

User avatar
jimallyn
Level 18
Level 18
Posts: 8136
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: Middle click paste in XFCE?

Post by jimallyn » Sat Mar 07, 2015 4:58 am

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?
Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan

User avatar
xenopeek
Level 24
Level 24
Posts: 22483
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Middle click paste in XFCE?

Post by xenopeek » Sat Mar 07, 2015 5:24 am

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.
Image

Gerapa
Level 2
Level 2
Posts: 61
Joined: Sun Dec 01, 2013 7:06 pm

Re: Middle click paste in XFCE?

Post by Gerapa » Sat Mar 07, 2015 8:52 am

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.

User avatar
richyrich
Level 18
Level 18
Posts: 8777
Joined: Mon May 04, 2009 8:31 pm

Re: Middle click paste in XFCE?

Post by richyrich » Sat Mar 07, 2015 9:05 am

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.

Wiikend
Level 1
Level 1
Posts: 1
Joined: Tue May 26, 2015 4:45 pm

Re: Middle click paste in XFCE?

Post by Wiikend » Tue Jun 09, 2015 4:53 pm

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.

Buzzsaw
Level 6
Level 6
Posts: 1294
Joined: Sat Aug 23, 2014 12:53 pm

Re: Middle click paste in XFCE?

Post by Buzzsaw » Wed Jun 10, 2015 9:46 pm

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.

User avatar
MtnDewManiac
Level 6
Level 6
Posts: 1329
Joined: Fri Feb 22, 2013 5:18 pm
Location: United States

Re: Middle click paste in XFCE?

Post by MtnDewManiac » Sat Jun 13, 2015 11:24 am

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
Mint 18 Xfce 4.12.

If guns kill people, then pencils misspell words, cars make people drive drunk, and spoons made Rosie O'Donnell fat.

User avatar
jimallyn
Level 18
Level 18
Posts: 8136
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: Middle click paste in XFCE?

Post by jimallyn » Wed Jun 13, 2018 4:24 pm

Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan

Post Reply

Return to “Xfce”