IgnorantGuru / spacefm

SpaceFM File Manager
http://ignorantguru.github.com/spacefm/
GNU General Public License v3.0
489 stars 73 forks source link

Problem with the back/forward feature using button 6 & 7 #294

Closed IPiWT closed 11 years ago

IPiWT commented 11 years ago

First of all, sorry for bothering you a second time, but it seems that the back/forward feature using button 6 & 7 (#279) doesn't work. I have tried the last version (0.8.7), but clicking on these button doesn't have any effect. I've checked these buttons with xev and they work well. I've also tried with the utility xdotool : xdotool click 6 but it makes no effect (whereas xdotool click 8,9, 4 and 5 works well). I have also tried to unistall/reinstall the package and delete the old configuration files but it still doesn't work. Thank you in advance for your answer and finally I wanted to thank you for your reactivity and your Great job on this software.

IgnorantGuru commented 11 years ago

Please make sure you were running 0.8.7 when you ran this test (run 'killall spacefm' after upgrading).

6 & 7 are handled like 8 & 9. You might check if your WM or other utility is intercepting those mouse buttons.

IPiWT commented 11 years ago

The version is the good one : $ spacefm --version spacefm 0.8.7 GTK3 UDEV INOTIFY DESKTOP

I use openbox, and these buttons work well on opera, so I don't think an other utility intercepts those buttons, I tried to exit every think but spacefm but it doesn't change anything.

However I've just notice that when I'm in the "compact style" (I don't know the exact term in english). Those buttons let me scroll left and right, maybe the problem come from here.

IgnorantGuru commented 11 years ago

So I dug out an old optical wireless Logitech mouse with a scrollwheel that clicks left and right. But they produced buttons 11 and 12! Not sure what to make of that. Couldn't get a 6 or 7 out of it.

However, after reading this, I'm convinced that 6 & 7 are intended for horizontal scroll per xorg, as you found, and that some apps like Firefox simply use them incorrectly.

I have thus reverted use of 6 & 7 in SpaceFM for the next release (it won't treat them as back/forward) - this means they can be used for horiz scroll instead. If you want them to work as back/forward, I think remapping them to 8 9 is the correct solution.

Like many things this is probably not well-standardized, and I am no button expert (3 is usually my max). If you or others have further comments on this, please add them below (even though the issue is closed) rather than opening a new issue - thanks.

IPiWT commented 11 years ago

Yes, I think you are right, those buttons should be for horizontal scrolling. But one last think : buttons 4 & 5 are the two buttons of the wheel (up and down), so why does spacefm use them for back/forward (even if in fact this behavior is not the final one because the scroll takes the advantage (like with buttons 6 and 7)).