LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-19-2017, 06:26 AM   #1
Festerdam
LQ Newbie
 
Registered: Jun 2017
Location: Earth
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
Computer detecting right-click as left-click, left-click as left-click and middle with 2 fingers pressed as right-click


I couldn't open the root menu when right-clicking on the Fluxbox desktop.

I opened Xev and I got this output when making these actions:

-Left-click:
Code:
ButtonPress event, serial 36, synthetic NO, window 0xc00001,
    root 0xd4, subw 0x0, time 57000313, (97,169), root:(1070,196),
    state 0x10, button 1, same_screen YES

ButtonRelease event, serial 36, synthetic NO, window 0xc00001,
    root 0xd4, subw 0x0, time 57000421, (97,169), root:(1070,196),
    state 0x110, button 1, same_screen YES
-Right-click:
Code:
ButtonPress event, serial 36, synthetic NO, window 0xc00001,
    root 0xd4, subw 0x0, time 57004019, (97,163), root:(1070,190),
    state 0x10, button 1, same_screen YES

ButtonRelease event, serial 36, synthetic NO, window 0xc00001,
    root 0xd4, subw 0x0, time 57004126, (97,163), root:(1070,190),
    state 0x110, button 1, same_screen YES
-Middle-click with 2 fingers:
Code:
ButtonPress event, serial 36, synthetic NO, window 0xc00001,
    root 0xd4, subw 0x0, time 57291756, (76,167), root:(1049,194),
    state 0x10, button 3, same_screen YES

ButtonRelease event, serial 36, synthetic NO, window 0xc00001,
    root 0xd4, subw 0x0, time 57291897, (76,167), root:(1049,194),
    state 0x410, button 3, same_screen YES
As we can see in the output, right-click is interpreted the same way left-click is.

I have removed GPM with pkgtool, but it still doesn't work(I found a post where someone solved a problem that he had with his mouse by removing the GPM).

I am using an Asus touch-pad(I don't know how to call it.).

Scrolling with 2 fingers works.

It isn't so bad, it feels also a bit modern to have to middle-click to make things that we are currently doing with right-click, but it isn't practical for playing games like Minetest.

You could give instructions on how to remove this behavior, but also how to enable something like this, so people who like to use middle-click with 2 fingers can experience such a modern life-style.

P.S. I know the output isn't "code", but I like to see it kind of isolated from the other text.
 
Old 06-19-2017, 07:40 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
go into mouse settings and change it from left handed to right handed mouse, see if that works.

Fluxbox
look at the settings in this link you can put them in your start up file in /fluxbox/startup file to see your pad

mine I turn off using this
Code:
#completely turn off the touchpad

xinput set-prop 12 "Device Enabled" 0
	synclient touchpadoff=1
	synclient VertEdgeScroll=0
	synclient TapButton1=0
        synclient TapButton2=0
	synclient TapButton3=0 &
it is in the top end of my start up file
https://wiki.archlinux.org/index.php/Touchpad_Synaptics

Last edited by BW-userx; 06-19-2017 at 07:45 AM.
 
1 members found this post helpful.
Old 06-19-2017, 09:29 AM   #3
Festerdam
LQ Newbie
 
Registered: Jun 2017
Location: Earth
Distribution: Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, BW-userx.

When I was reading the synaptics' man page, I saw a line like this:

Code:
-   Multifinger  taps: two finger for right button and three finger for middle button events.  (Needs hardware support.  Not all models implement this feature.)
Which clearly describes my current situation. I am going to take some time reading this man page, so I can disable this feature.
 
Old 06-19-2017, 09:34 AM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Festerdam View Post
Thanks, BW-userx.

When I was reading the synaptics' man page, I saw a line like this:

Code:
-   Multifinger  taps: two finger for right button and three finger for middle button events.  (Needs hardware support.  Not all models implement this feature.)
Which clearly describes my current situation. I am going to take some time reading this man page, so I can disable this feature.
cool -- have fun learning.
 
Old 06-19-2017, 11:47 AM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Those gestures are what modern tablets tend to use. And not un-expected. I can't look at a tablet and not think of the ancient one button mouse associated with apple / macintosh. With multi-touch being two one button mice, not one two button mouse.

https://en.wikipedia.org/wiki/Apple_Mouse

Browsers and other things have adopted left click only behavior, so a right mouse triggers the left mouse action. In the old days you could left mouse the address bar history and right mouse to COPY the url. Not anymore and it's still fairly application specific. There are settings that you can adjust for the mouse, but the apps are what the apps are.

$ xinput
$ xinput --list-props ##
$ xinput --set-prop ## ### value

In my case ## is currently 8 for my logitech mouse, and ### is 279 for middle button emulation. With value being 1 for true. Although not something I would normally do for this mouse as it has a middle button. But I have a kensington trackball with only two buttons. And I prefer a wm that uses the middle button to resize windows. Although wmctrl works for that if I'm being lazy. Just another option or two if your desktop environment doesn't have a nice gui way to customize your pointer device(s).
 
Old 06-19-2017, 05:41 PM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Some other options:

https://askubuntu.com/questions/5796...n-ubuntu-14-10

https://ubuntuforums.org/showthread....2126905&page=2
 
  


Reply

Tags
mouse



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Left mouse click evan2963 Linux - Hardware 1 02-28-2016 04:32 PM
How to map middle-click on mouse to left-click. sdfi Debian 1 08-26-2012 05:31 PM
[SOLVED] Single left click picked up sometimes as double click? george-lappies Slackware 11 06-14-2011 04:35 AM
middle mouse click is replaced by the dual click wanas Linux - Desktop 2 05-15-2009 04:53 PM
left click on kubuntu desktop (on laptop) brings up middle click menu =S darksmiley Ubuntu 2 06-14-2008 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration