]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Scroll-Bindings: Add default config
authorArnaud Vallette d'Osia <Arnaudv6@users.noreply.github.com>
Sun, 6 Nov 2022 20:13:57 +0000 (21:13 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 6 Nov 2022 21:03:50 +0000 (22:03 +0100)
By default we switch workspaces when scrolling
on the desktop to match the Openbox behavior.

docs/rc.xml.all
src/config/rcxml.c

index c336340489750adedaa469702837efebc22ec299..f7c1a24b7d9fa8982dba281ecf14f13e7effd580 100644 (file)
       <mousebind button="Middle" action="Press">
         <action name="ShowMenu"><menu>root-menu</menu></action>
       </mousebind>
+      <mousebind button="Up" action="Scroll">
+        <action name="GoToDesktop" to="left"/>
+      </mousebind>
+      <mousebind button="Down" action="Scroll">
+        <action name="GoToDesktop" to="right"/>
+      </mousebind>
     </context>
 
   </mouse>
index cf839304945d827610d824a715eeb44ce341df8f..7bf511bec11887c21e1e410c065cb48c6b9e9be1 100644 (file)
@@ -591,6 +591,8 @@ static struct mouse_combos {
        { "Root", "Left", "Press", "ShowMenu", "root-menu"},
        { "Root", "Right", "Press", "ShowMenu", "root-menu"},
        { "Root", "Middle", "Press", "ShowMenu", "root-menu"},
+       { "Root", "Up", "Scroll", "GoToDesktop", "left"},
+       { "Root", "Down", "Scroll", "GoToDesktop", "right"},
        { "Client", "Left", "Press", "Focus", NULL},
        { "Client", "Left", "Press", "Raise", NULL},
        { "Client", "Right", "Press", "Focus", NULL},