mirror of
https://github.com/labwc/labwc.git
synced 2026-04-10 08:21:07 -04:00
ssd: fix resizing on border corners and add <resize><cornerRange>
Co-authored-by: @ahesford The direction of resizing was determined based on the hovered ssd component (e.g. left border, top-left extent), but it caused problems when trying to start resizing by pressing the corners of the window border; the resizing direction was always unidirectional at bottom corners and resizing cannot be started by pressing top corners. This commit fixes this weirdness by determining resize directions only based on the window geometry and the cursor position. The corner extents are removed as they are not longer needed. This commit also adds <resize><cornerRange> which configures the range of corner resizing on the borders/extent.
This commit is contained in:
parent
9a473f1848
commit
e98406168d
8 changed files with 89 additions and 59 deletions
|
|
@ -131,6 +131,7 @@
|
|||
<popupShow>Never</popupShow>
|
||||
<!-- Let client redraw its contents while resizing -->
|
||||
<drawContents>yes</drawContents>
|
||||
<cornerRange>8</cornerRange>
|
||||
</resize>
|
||||
|
||||
<focus>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue