]> git.mdlowis.com Git - proto/labwc.git/commit
Add position arguments for menus
authorDroc <japhack@yahoo.com>
Thu, 5 Sep 2024 12:52:23 +0000 (07:52 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 5 Sep 2024 20:28:50 +0000 (22:28 +0200)
commit8850368ab943d49dbd312d34fccd10e336b68ec9
tree9b8bf3bf9a287c5912e79572d5f8353151233469
parentf3b27668924aca964eb212e39fd140ed06210a53
Add position arguments for menus

...utilizing x,y coordinates where values can be a number, a negative
number, a percentage or "center".

- (0,0) is top left corner
- (-0,-0) is bottom right corner
- % is percentage of width and/or height
- 'center' centers the menu vertically and/or horizontally

    <action name="ShowMenu">
      <menu>root-menu</menu>
      <position>
        <x>0</x>
        <y>0</y>
      </position>
    </action>

Note: both x and y values must be supplied for positioning to work.
docs/labwc-actions.5.scd
src/action.c