]> git.mdlowis.com Git - proto/labwc.git/commit
menu: correctly center menu opened with <position {x,y}="center">
authortokyo4j <hrak1529@gmail.com>
Fri, 8 Nov 2024 11:55:13 +0000 (20:55 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 8 Nov 2024 21:33:34 +0000 (21:33 +0000)
commit0aaa2e0102c96e64f9a4a23c30ab38df9bb0a1c0
treec91dfad0e2d75446af02d7a1c4e090a873a62173
parent3c39ed38b585721c55a83a2f1082ad3229c1f805
menu: correctly center menu opened with <position {x,y}="center">

Prior to this commit, a menu opened with:

  <action name="ShowMenu">
    <position x="center" y="center" />
  </action>

was not correctly centered when menu.items.padding.x is non-zero.
src/action.c