]> git.mdlowis.com Git - proto/labwc.git/commit
src/config/rcxml.c: Add support for <devault /> mousebinds
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 29 Aug 2022 21:43:13 +0000 (23:43 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 30 Aug 2022 15:39:09 +0000 (16:39 +0100)
commitea6007d34c1cea2924c003e21db2a7ab1d7fd614
tree76ea2d4f06862d67b2cb1680f40e84dc9cb987c7
parent3afd666cc4a95a89dad9d0ee3a112c1cf6832670
src/config/rcxml.c: Add support for <devault /> mousebinds

This loads default mousebinds and provides a way to keep config files
simpler whilst allowing user specific binds.

Note that if no rc.xml is found, or if no <mouse><mousebind> entries
exist, the same default mousebinds will be loaded even if the <devault />
element is not provided.

Example usage (with a slight spelling error):

  <mouse>
    <default />
    <context name="Root">
      <mousebind button="Right" action="Press">
        <action name="ShowMenu" menu="desktop-menu" />
      </mousebind>
    </context>
  </mouse>

Co-Authored-By: @johanmalm
Fixes #416
docs/labwc-config.5.scd
src/config/rcxml.c