]> Dogcows Code - chaz/openbox/commitdiff
smarter mouse wheel default actions
authorDana Jansens <danakj@orodu.net>
Mon, 23 Jul 2007 19:48:13 +0000 (15:48 -0400)
committerDana Jansens <danakj@orodu.net>
Tue, 24 Jul 2007 21:04:29 +0000 (17:04 -0400)
data/rc.xml

index ff5830dc4dcb0bbc766be7877b8003f4aeae00a1..15ab65b0de1bbc45db744eef3f540c8707532102 100644 (file)
     </mousebind>
 
     <mousebind button="Up" action="Click">
-      <action name="Shade"/>
-      <action name="FocusToBottom"/>
-      <action name="Unfocus"/>
-      <action name="Lower"/>
+      <action name="if">
+        <shaded>no</shaded>
+        <then>
+          <action name="Shade"/>
+          <action name="FocusToBottom"/>
+          <action name="Unfocus"/>
+          <action name="Lower"/>
+        </then>
+      </action>
     </mousebind>
     <mousebind button="Down" action="Click">
-      <action name="Unshade"/>
-      <action name="Raise"/>
+      <action name="if">
+        <shaded>yes</shaded>
+        <then>
+          <action name="Unshade"/>
+          <action name="Raise"/>
+        </then>
+      </action>
     </mousebind>
 
     <mousebind button="Right" action="Press">
This page took 0.028076 seconds and 4 git commands to generate.