diff options
| author | srdusr <[email protected]> | 2025-08-31 14:04:00 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2025-08-31 14:04:00 +0200 |
| commit | 4a55182ce17fd4474f8be1e8819a41b7ccd11045 (patch) | |
| tree | 68541860b6aa2c88c9da2296a747a1037499e1c0 /crates/wayland/src/desktop_menu.rs | |
| parent | be5c4efa6866b5d23e1e81ecfc3b8d276540860f (diff) | |
| download | srdwm-4a55182ce17fd4474f8be1e8819a41b7ccd11045.tar.gz srdwm-4a55182ce17fd4474f8be1e8819a41b7ccd11045.zip | |
Wire aspect_ratio, phone_mode and pin_input through config/IPC/CLI
The Lua and IPC/CLI surface for the three new core primitives
(crates/core: aspect_ratio rule action, general.phone_mode, virtual-
pointer window pinning):
- srd.rule(..., { aspect_ratio = "9:16" }): parses a "W:H" string into a
validated (u32, u32), rejecting a malformed value as a real Lua error
at config-load time rather than silently ignoring it.
- general.phone_mode config default, plus srd set phone_mode <bool> for
the live equivalent (same shape as animations/shadows/rounded_corners).
- pin_input IPC dispatch ({"cmd":"pin_input","pid":<pid>,"id":<window
id>}, id omitted to unpin) and its CLI surface, srd dispatch pin input
<pid> <window-id> / unpin input <pid>. Keyed by the owning client's
process id, not an opaque per-object id nothing outside the Wayland
backend could ever learn - a controlling tool already knows its own
pid for free.
See docs/TODO.md for the full design reasoning behind each of these.
Diffstat (limited to 'crates/wayland/src/desktop_menu.rs')
0 files changed, 0 insertions, 0 deletions