]> git.mdlowis.com Git - proto/labwc.git/commitdiff
docs/rc.xml: add default mousebind example
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Wed, 7 Dec 2022 09:52:49 +0000 (10:52 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 12 Dec 2022 17:56:36 +0000 (17:56 +0000)
docs/menu.xml
docs/rc.xml

index a8f3eacb9a72a01e943ad483874827c1c316756f..94740dd1b4c6c0e9eaf81e80dc2c3eba0ef9963c 100644 (file)
   </item>
 </menu>
 
+<menu id="some-custom-menu">
+  <item label="Reconfigure">
+    <action name="Reconfigure" />
+  </item>
+  <item label="Exit">
+    <action name="Exit" />
+  </item>
+</menu>
+
 </openbox_menu>
index 162c2afb73735a20f1d75f6ba62a24d50099e737..abc62d45f04ce77736cebe87b96e9d7c6bf381f7 100644 (file)
     </keybind>
   </keyboard>
 
+  <mouse>
+    <default />
+    <context name="Root">
+      <mousebind button="Right" action="Press">
+        <action name="ShowMenu" menu="some-custom-menu" />
+      </mousebind>
+    </context>
+  </mouse>
+
 </labwc_config>