useless gaps around windows for all layout modes
Merge uselessgaps patch.