This makes two changes to the tiling window arrangement:
When the number of windows on the bottom row is less than in previous rows, the total screen width is used.
Windows are placed into the grid so they enter a grid cell close to where they are currently on the screen. Currently, windows are placed into the grid in order of 'last to have focus' (from top left to bottom right). This leads to windows shuffling if clicking `tile' again after changing focus to a new window.
This makes two changes to the tiling window arrangement:
Here's before:
And after: