ssd: fix resizing on border corners and add <resize><cornerRange>

Eliminate corner extents and instead use cursor position to map SSD
borders and extents to corner contexts, with a size configurable by the
<resize><cornerRange> parameter. This simplifies extent handling,
eliminates bugs in the detection of corner context, and allows users to
expand corner targets if they wish.

Co-authored-by: Andrew J. Hesford <ajh@sideband.org>
This commit is contained in:
tokyo4j 2025-02-01 14:51:47 +09:00 committed by Andrew J. Hesford
parent 9ad6e3c68c
commit 950337b895
9 changed files with 102 additions and 60 deletions

View file

@ -576,6 +576,13 @@ extending outward from the snapped edge.
outlined rectangle is shown to indicate the geometry of resized window.
Default is yes.
*<resize><cornerRange>*
The size of corner regions to which the 'TLCorner', 'TRCorner',
'BLCorner' and 'RLCorner' mousebind contexts apply, as well as the size
of the border region for which mouse resizing will apply both
horizontally and vertically rather than one or the other. Default is
half the titlebar height.
## KEYBOARD
*<keyboard><numlock>* [on|off]