]> git.mdlowis.com Git - proto/labwc.git/commit
action: allow SnapToEdge to combine two cardinal directions
authortokyo4j <hrak1529@gmail.com>
Fri, 5 Sep 2025 03:14:52 +0000 (12:14 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Fri, 19 Sep 2025 07:23:23 +0000 (16:23 +0900)
commit2ac48116e14491abec2326e70190a32192df6764
treec0906a6671ca1bfb629ba0664c0e70c268a3f6be
parentaf6a0df2311fa8b38c532285b3868a649f7998f5
action: allow SnapToEdge to combine two cardinal directions

This patch adds `combine` argument to (Toggle)SnapToEdge actions.
This allows to snap a window to e.g. up-left by running two actions:
- `<action name="SnapToEdge" direction="left" combine="yes" />`
- `<action name="SnapToEdge" direction="up" combine="yes" />`

Then running `<action name="SnapToEdge" direction="down" combine="yes" />`
snaps it to left again. This behavior is almost the same as KWin, except
that snapping a up-right-tiled window to right doesn't move it to the
right-adjacent output, but makes it right-tiled first.
docs/labwc-actions.5.scd
include/view.h
src/action.c
src/interactive.c
src/view.c