]> git.mdlowis.com Git - proto/labwc.git/commit
view: add MoveToOutput `wrap` attribute
authorJohan Malm <jgm323@gmail.com>
Sat, 2 Mar 2024 15:42:05 +0000 (15:42 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 2 Mar 2024 21:23:01 +0000 (21:23 +0000)
commit3c3bcc2765aa06c9fcf1e7e65862628de1ad33d1
tree8db3137fbdd2006ac74a6abe580b922f192cdef9
parent7e338fc365d49f7ffb6bbb3050a142d05f373b59
view: add MoveToOutput `wrap` attribute

Support `wrap` in view_get_adjacent_output(). This means that when seeking
an adjacent output in a particular direction from an output that is
already furthest in that direction within the layout, rather than
returning NULL, wrap around from the leftmost to the rightmost, or topmost
to the bottommost and vice versa.

Example usage:

    <action name="MoveToOutput" direction="right" wrap="yes" />

Wrap is disabled by default to keep the user interface consistent.
docs/labwc-actions.5.scd
include/view.h
src/action.c
src/view.c