change to inner/outer range

This commit is contained in:
elviosak 2025-12-01 01:52:25 -03:00
parent f89c31c2de
commit b2750027da
5 changed files with 54 additions and 27 deletions

View file

@ -498,15 +498,16 @@ activated with SnapToEdge actions or, optionally, by dragging windows to the
edges of an output. Edge snapping causes a window to occupy half of its output,
extending outward from the snapped edge.
*<snapping><horizontalRange>*++
*<snapping><verticalRange>*++
*<snapping><range><inner>*++
*<snapping><range><outer>*++
*<snapping><cornerRange>*
If an interactive move ends with the cursor within *<horizontalRange>* pixels of
the left/right output edge, or *<verticalRange>* of the top/bottom output edge,
the window is snapped to the edge. If it's also within *<cornerRange>* pixels of
an output corner, the window is snapped to the corner instead.
If *<horizontalRange>* and *<verticalRange>* is 0, snapping is disabled.
Default is 10 for *<horizontalRange>* and *<verticalRange>*, and 50 for *<cornerRange>*.
If an interactive move ends with the cursor within *inner* or *outer* pixels
of an output edge, the window is snapped to the edge. *inner* edges are edges
with an adjacent output and *outer* edges are edges without an adjacent output.
If it's also within *<cornerRange>* pixels of an output corner, the window is
snapped to the corner instead.
If *inner* and *outer* is 0, snapping is disabled.
Default is 10 for *<range><inner>* and *<range><outer>*, and 50 for *<cornerRange>*.
*<snapping><overlay><enabled>* [yes|no]
Show an overlay when snapping to a window to an edge. Default is yes.

View file

@ -161,9 +161,8 @@
</focus>
<snapping>
<!-- Set range to 0 to disable window snapping completely -->
<horizontalRange>10</horizontalRange>
<verticalRange>10</verticalRange>
<!-- Set inner and outer range to 0 to disable window snapping completely -->
<range inner="10" outer="10" />
<cornerRange>50</cornerRange>
<overlay enabled="yes">
<delay inner="500" outer="500" />