Fmstrat / wintile

Windows 10 window tiling for GNOME
GNU General Public License v3.0
424 stars 54 forks source link

clean grid calculations #111

Closed GrylledCheez closed 1 year ago

GrylledCheez commented 1 year ago
  1. Reduced number of checks done in each iteration by calculating repeated formulas as variables and moved monitor check into its own if block. This also makes reading the code much easier since the code is essentially its own comment.
  2. Shrunk top-center bounds check from +- 1/2 column to +- 1/5 column