mirror of
https://github.com/labwc/labwc.git
synced 2026-04-13 08:21:15 -04:00
Until now, the client menu can be two ways by default:
- left click on client menu button at the top left of the window bar
- right click anywhere on the window bar that isn't otherwise bound
The first option opens the menu button, while the second opens it on the
window bar, whereever the mouse cursor is.
If one adds a way to open the menu elsewhere, e.g. with this:
```xml
<mouse>
<context name="Frame">
<mousebind button="S-Right" action="Press">
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
<context>
</mouse>
```
the menu will open on the client menu spot.
With OpenBox, a similar configuration will result in the menu opening
where the mouse cursor is, which is usually more convenient.
This patch adds an option (`menu_clientMenuAtPointer`) that will enable
the same behavior as with OpenBox, and default to off (existing
behavior).
I am not tied to the naming of the option (or that it lives in the RC
root atm), but I thought I'd get the general ide reviewed and then
letting the bikeshedding begin. Naturally, docs and rc.xml.all will
also be added once the basics have been decided.
|
||
|---|---|---|
| .. | ||
| button | ||
| common | ||
| config | ||
| input | ||
| menu | ||
| action.h | ||
| buffer.h | ||
| debug.h | ||
| decorations.h | ||
| dnd.h | ||
| edges.h | ||
| idle.h | ||
| labwc.h | ||
| layers.h | ||
| meson.build | ||
| node.h | ||
| output-virtual.h | ||
| placement.h | ||
| regions.h | ||
| resistance.h | ||
| resize_indicator.h | ||
| session-lock.h | ||
| snap.h | ||
| ssd-internal.h | ||
| ssd.h | ||
| theme.h | ||
| view-impl-common.h | ||
| view.h | ||
| window-rules.h | ||
| workspaces.h | ||
| xwayland.h | ||