Feature request/proposal - Show menu centered to screen
xfce4-popup-whiskermenu
can currently be use to show whisker menu either at button location or at cursor position. It would be great to also have the ability to show it centered into the current screen.
If appreciated, I can give it a try.
In this case, I think I would:
- Modify
Window::Position
to end up with (button, cursor, center) options (I would merge current horizontal/vertical options into a single button option since code no more make use of orientation disctinction) - Update plugin D-Bus API
- Update
xfce4-popup-whiskermenu
to add this option through updated API
In order to retain backward compatibility of D-Bus API, I would either:
- accept two signatures for current "show" event (current bool-arg one + another accepting a position string argument binding to enum options)
- add one or two new events ("show-at-cursor" and "show-at-center", keeping "show" unchanged defaulting to at-button)
If you want me to give it a try, I am interested to have your feeling about those choices.
Best regards.