Updated genericgaps (markdown)

Nikita Ivanov 2023-05-20 04:32:20 +02:00
parent 0b6102f07f
commit 2c99cb9a25

@ -1,11 +1,11 @@
### Description
This patch is a modified version of [vanitygaps][vanitygaps] that adds gaps around windows regardless of a layout.
This means you can apply any layout patches and the gaps will be displayed there as well.
This means you can apply any layout patch and the gaps will be work correctly with that layout without any modifications (as long as the layout does not add any gaps on its own).
This works by allowing a layout to place windows its way,
This works by allowing a layout to place windows normally without gaps,
but then correcting windows positions and dimensions afterwards to add gaps around them.
To make it work, `resize()` function was modified.
As a side effect, it also fixed some flickering I experienced when using [snail][snail] layout.
To make it work, I had to modify `resize()` function,
and, as a side effect, this change fixed some flickering I experienced when using [snail][snail] layout.
[snail]: https://github.com/djpohly/dwl/wiki/snail
[vanitygaps]: https://github.com/djpohly/dwl/wiki/vanitygaps