resistance: add window-edge resistance for interactive moves/resizes

This commit is contained in:
Andrew J. Hesford 2024-01-20 21:59:46 -05:00 committed by Andrew J. Hesford
parent f73e9ded1c
commit 57ea197e6c
6 changed files with 199 additions and 138 deletions

View file

@ -197,9 +197,14 @@ this is for compatibility with Openbox.
## RESISTANCE
*<resistance><screenEdgeStrength>*
Screen Edge Strength is how far past the screen's edge your cursor must
move before the window will move with it. Resistance is counted in
pixels. Default is 20 pixels.
Screen-edge strength is the distance, in pixels, past the edge of a
screen the cursor must move before an interactive move or resize of a
window will continue past the edge. Default is 20 pixels.
*<resistance><windowEdgeStrength>*
Window-edge strength is the distance, in pixels, past the edge of any
other window the cursor must move before an interactive move or resize
of a window will continue past the edge. Default is 20 pixels.
## FOCUS

View file

@ -66,6 +66,7 @@
<!-- edge strength is in pixels -->
<resistance>
<screenEdgeStrength>20</screenEdgeStrength>
<windowEdgeStrength>20</windowEdgeStrength>
</resistance>
<!-- Show a simple resize and move indicator -->