Openbox – Disable Desktop Switching with the Scroll Wheel


I still want to keep my multiple desktops, I want to disable switching desktops with the mouse.

Best Answer

cd ~/.config/openbox
cp lubuntu-rc.xml lubuntu-rc.xml.bak

(this makes a backup file so that when you think you've messed it up you could revert it back.)

leafpad lubuntu-rc.xml

and delete the lines which says;

<mousebind button="UP" action="click">
 <action name="DesktopPrevious" />
<mousebind button="Down" action="click">
 <action name="DesktopNext" />

Log out and Log in back again to see the changes!

if you've messed it up and want to revert it back;

cp lubuntu-rc.xml.bak lubuntu-rc.xml

Answer quoted from Lubuntu docs