Hello everyone,

I noticed a bug in how the fair tiling mode calculates window sizes.


Scenario description:
  Say you screen height is 1000px.
  Say you had 3 windows stacked in some column.

The height of each window is calculated as:
  screen height / window count = 1000px / 3 = 333.33px ==> 333px

Now we have 3 windows with a height of 333px.
But, when stacked, those 3 windows add up to 999px, leaving a 1px gap!

The same also happens for window width.


The attached patch fixes the window size calculations, and supports
both fair-south and fair-east tiling modes.

Any feedback is welcome.


Thank you all for your time,
Josh Komoroske

Attachment: fix_fair_window_gaps.patch
Description: Binary data

Reply via email to