mirror of
https://github.com/swaywm/sway.git
synced 2026-06-13 14:33:19 -04:00
`move container to output`, `move workspace to output` and `focus output` now accept 'next' and 'prev', which cycle through the enabled outputs with wrap-around. This matches i3's behaviour of expanding 'next' into the full output list so the following output relative to the current one is picked. The name/direction/current resolution used by the move commands was also duplicated inline in `focus_output`; both call sites now share a new `output_by_direction_or_name` helper in `sway/desktop/output.c`. Closes: #8799 i3 implementation in https://github.com/i3/i3/pull/4338 Note: - i3 accepts multiple output arguments and `next` works as a wildcard. I considered that out of scope for this PR. - i3 does not have `prev`. Accepting it in sway is natural and practically free complexity-wise so I added it. |
||
|---|---|---|
| .. | ||
| sway | ||
| swaybar | ||
| swaynag | ||
| cairo_util.h | ||
| gesture.h | ||
| ipc-client.h | ||
| ipc.h | ||
| list.h | ||
| log.h | ||
| loop.h | ||
| meson.build | ||
| pango.h | ||
| pool-buffer.h | ||
| stringop.h | ||
| util.h | ||