Caja mouse_back_button not working

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
NoMad28

Caja mouse_back_button not working

Post by NoMad28 »

Hello,
I'm having trouble with the Caja Filebrowser and my mouse. Caja doesn't seem to recognize the mouse's input for the back / forward buttons.
However, these work fine in other applications (tested: chrome, firefox).
I used the Configuration Editor to look for preferences to edit, there are mouse_back_button, mouse_forward_button and mouse_use_extra_buttons fields.
Back is set to 8, forward is set to 9. (Un)Selecting mouse_use_extra_buttons doesn't solve the problem. mouse_back_button and mouse_forward_button seem to be the right values, xinput says:

Code: Select all

xinput query-state 9 | grep down
	button[8]=down
when holding down the mouse's back button. Oddly, there are multiple mouse input devices listed, and the back button only works for device #9:

Code: Select all

xinput --list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ Areson Gaming II                        	id=9	[slave  pointer  (2)]
⎜   ↳ Areson Gaming II                        	id=10	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Power Button                            	id=7	[slave  keyboard (3)]
    ↳ Plantronics Plantronics GameCom 780     	id=8	[slave  keyboard (3)]
    ↳ G15 Gaming Keyboard                     	id=11	[slave  keyboard (3)]
    ↳ G15 Gaming Keyboard                     	id=12	[slave  keyboard (3)]
    ↳ G15 GamePanel LCD                       	id=13	[slave  keyboard (3)]
The mouse I use is a Gigabyte GM-M8000, no linux drivers available on their homepage.

So when I press back/fwd, in Caja, this doesn't make the browser go back/fwd, but it seems to misinterpret the input:
Files get selected / the file menu is opened when pressing back/fwd and hovering above one of those elements. On Single-Click Directory-Open (default setting) folders also just get selected, not opened.

Additionally, here's a xev output for back-button, forward-button and left-click presses:

Code: Select all

ButtonPress event, serial 33, synthetic NO, window 0x3a00001,
    root 0xbb, subw 0x0, time 89727063, (74,86), root:(77,134),
    state 0x10, button 8, same_screen YES

ButtonRelease event, serial 33, synthetic NO, window 0x3a00001,
    root 0xbb, subw 0x0, time 89727211, (74,86), root:(77,134),
    state 0x10, button 8, same_screen YES

ButtonPress event, serial 33, synthetic NO, window 0x3a00001,
    root 0xbb, subw 0x0, time 89733084, (74,86), root:(77,134),
    state 0x10, button 9, same_screen YES

ButtonRelease event, serial 33, synthetic NO, window 0x3a00001,
    root 0xbb, subw 0x0, time 89733284, (74,86), root:(77,134),
    state 0x10, button 9, same_screen YES

ButtonPress event, serial 33, synthetic NO, window 0x3a00001,
    root 0xbb, subw 0x0, time 89734290, (74,86), root:(77,134),
    state 0x10, button 1, same_screen YES

ButtonRelease event, serial 33, synthetic NO, window 0x3a00001,
    root 0xbb, subw 0x0, time 89734446, (74,86), root:(77,134),
    state 0x110, button 1, same_screen YES
Does anybody have an idea what could be wrong?
Thanks,
NoMad
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
RobH

Re: Caja mouse_back_button not working

Post by RobH »

Hi,
did anyone have any thoughts on this problem?? I have switched from Mint Cinnamon to Mate with 16/Petra as I was having random instability issues and graphical glitches with cinnamon...

anyway - now that I am running Mate, I have found that Caja does not like the mouse back and forward buttons when in 'List view'... it seems ok in 'Icon view' and 'Compact View'.

It's not a show-stopper, but its annoying :?

Thanks in advance...
JosephM
Level 6
Level 6
Posts: 1458
Joined: Sun May 26, 2013 6:25 pm

Re: Caja mouse_back_button not working

Post by JosephM »

I have been using Mate lately for a few reasons and noticed the odd behavior of the mouse back button in Caja. In the icon view it only seems to work if the mouse cursor is over empty space. If the cursor is over an icon it doesn't do anything. Don't know what causes that behavior but it might explain the problems you have in the treeview since you might not have that same empty space to hover over.
When I give opinions, they are my own. Not necessarily those of any other Linux Mint developer or the Linux Mint project as a whole.
RobH

Re: Caja mouse_back_button not working

Post by RobH »

I am seeing the same behaviour as JosephM... back and forward buttons not working when cursor is over an item in either icon view or compact view.... not working anywhere when in list view
luker
Level 1
Level 1
Posts: 7
Joined: Mon Apr 21, 2014 10:46 am

Re: Caja mouse_back_button not working

Post by luker »

Same here. Has anyone found a solution in the meantime?
reddot

Re: Caja mouse_back_button not working

Post by reddot »

aaarrrggg im having the same problem in linux mint 17.1 mate on a gigabyte m7700, but oddly when i run caja as a superuser my mouse works using button 4 and 5(back and forward) :evil: . but when i use caja normally it wont work ! :x

update: i got it working only on icon/compact view not in list view :cry: before this it was not working at all (note this is for linux mint 17.1 mate )

install xvkbd and xbindkeys using terminal

Code: Select all

sudo apt-get install xvkbd xbindkeys
create .xbindkeysrc.scm in your home folder

edit .xbindkeysrc.scm and add (this is for buttons 4/5 on my mouse) (use a text editor i use gedit)

Code: Select all

"xvkbd -xsendevent -text "\[Alt_L]\[Left]""
   b:4
"xvkbd -xsendevent -text "\[Alt_L]\[Right]""
   b:5
run in terminal

Code: Select all

xbindkeys
in file management (control center)
make sure you select either icon view or compact view in Default view->view new folders using:-> icon or compact only

make sure xbindkeys starts automatically in startup programs (go to control center->startup programs)

it just sucks it wont work in list view

No need for steps above on linux mint 17.2 mate
Last edited by reddot on Sun Jul 19, 2015 2:58 pm, edited 1 time in total.
Stane1983

Re: Caja mouse_back_button not working

Post by Stane1983 »

Hi,

I'm also facing issue. However, found workaround and possible cause of problem. I'll just copy/paste what I wrote to github's caja issue https://github.com/mate-desktop/caja/issues/78:

I confirm issue as well on Mint 17.1. But, by accident I discovered that back and forward works just fine (in list view) when you have 2 or more tabs opened (ctrl+t) and your pointer is 'on tab', not inside listview. So my guess is if we can force tab part to be always visible it should work. Not a best solution but its solution.

Regards,
Stane1983
Locked

Return to “MATE”