[FanzyZones] Zone activation based on zone center (#11361)

* Started work on algorithm to select the zone with the center closest to the cursor.

* Fixed algorithm to compute center of rectangle

* Revert to taking the smallest area when the centers are too close (75 pixels).
Temporary turned off buffer of window selection to better see how the algorithm is working.

* Remove change to sensitivity radius.

* Changes in response to SeraphimaZ's comments.

* spelling fix

Co-authored-by: ulazy1 <ulazy198@gmail.com>
This commit is contained in:
ulazy1
2021-06-16 10:49:29 -04:00
committed by GitHub
parent 3f00aa0981
commit 482163daf7
4 changed files with 31 additions and 1 deletions

View File

@@ -20,7 +20,8 @@ struct Settings
Smallest = 0,
Largest = 1,
Positional = 2,
EnumElements = 3, // number of elements in the enum, not counting this
ClosestCenter = 3,
EnumElements = 4, // number of elements in the enum, not counting this
};
// The values specified here are the defaults.