Author Topic: How to turn off desktop switching with mouse wheel in LXDE  (Read 471 times)

Offline sneckert

  • Full Member
  • ***
  • Posts: 103
How to turn off desktop switching with mouse wheel in LXDE
« on: January 07, 2013, 10:45:43 AM »
Here I go again. it's probably something simple but I can't remember how to do it.  ???  I reinstalled PCLinuxOS with LXDE last week for reasons not related to this question. Now I have a problem with the mouse wheel changing the desktop every time I turn it. This is annoying when reading an e-mail or web page and I turn the wheel to scroll up or down the page and the cursor is just off the edge of the window. Before I reinstalled everything I could turn the wheel with the mouse on the background and it wouldn't change the desktop on me. I've looked though 3 Linux forums and searched dozens of pages in Google, all I find is how to stop this in KDE, none of which work in LXDE. Has anyone got any info on how to turn this on and off? Thank you, Stephen
Gigabyte GA-870A-UD3 mobo, AMD Phenom II x4 (955be) processor, 4gigabytes of DDR3 1333 ram. EVGA video board with Nvidia 9800GT GPU. Kernel 3.2.18-pclos2.bfs, PCLOS 2012.06, LXDE

Offline The Chief

  • Hero Member
  • *****
  • Posts: 2253
Re: How to turn off desktop switching with mouse wheel in LXDE
« Reply #1 on: January 07, 2013, 10:55:17 AM »
No, I don't have an answer, but the solution is easy. 

Don't spin the wheel when the cursor is on the desktop!   ;D ;D ;D

Retired Senior Chief, Retired Software Engineer, Active GrandPa

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1171
Re: How to turn off desktop switching with mouse wheel in LXDE
« Reply #2 on: January 07, 2013, 11:09:06 AM »
The problem isn't directly related to lxde it's related to openbox the window manager.

open the file /home/<you>/.config/openbox/lxde-rc.xml with a editor and look for the following

Code: [Select]
<mousebind button="Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>

replace it by

Code: [Select]
<!-- <mousebind button="Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>-->

than open a terminal and enter

Code: [Select]
openbox --restart
regards
ghostbunny
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline pags

  • Hero Member
  • *****
  • Posts: 2519
  • Keep it clean.
Re: How to turn off desktop switching with mouse wheel in LXDE
« Reply #3 on: January 07, 2013, 12:42:08 PM »
You could also look into changing if the window focus follows the mouse (so that the desktop doesn't get focus when you're not "on" the window you want to scroll)...

I don't know LXDE off the top of my head...does this help?:
http://forum.lxde.org/viewtopic.php?f=8&t=1758

Offline sneckert

  • Full Member
  • ***
  • Posts: 103
Re: How to turn off desktop switching with mouse wheel in LXDE
« Reply #4 on: January 07, 2013, 01:43:04 PM »
ghostbunny and pags;

No good! I tried them both and it still wants to change desktops.

Thanks for the quick reply.

Stephen
Gigabyte GA-870A-UD3 mobo, AMD Phenom II x4 (955be) processor, 4gigabytes of DDR3 1333 ram. EVGA video board with Nvidia 9800GT GPU. Kernel 3.2.18-pclos2.bfs, PCLOS 2012.06, LXDE

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1171
Re: How to turn off desktop switching with mouse wheel in LXDE
« Reply #5 on: January 07, 2013, 01:50:23 PM »
strange i tested my solution and it was working for me, or maybe it just works for touchpads
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD