menu placement

allow placement using x,y coordinates as well as centered in the output, set globally
This commit is contained in:
Droc 2024-08-17 08:47:14 -05:00
parent 13dee64828
commit 38659ff928
5 changed files with 87 additions and 1 deletions

View file

@ -115,7 +115,26 @@
<popupShow>Never</popupShow>
<!-- Let client redraw its contents while resizing -->
<drawContents>yes</drawContents>
</resize>
<!-- options for fixed menu placement
will override all atCursor placement -->
<!--
<popupPosition>Fixed</popupPosition>
-->
<!-- openbox uses 'Center', 'Top', or 'Fixed'
but we use Fixed & Center for now', positioning
is per output. -->
<popupFixedPosition>
<!-- openbox allows - negative offsets but that's because of X
we use positive offset, 0,0 is top left corner
monitor width - 1, monitor height - 1
will put the menu at bottom right corner -->
<x>10</x> <!-- 10 pixel from top left corner -->
<y>10</y>
</popupFixedPosition>
</resize>
<focus>
<followMouse>no</followMouse>