Fixes

Nikita Ivanov 2023-07-15 03:21:48 +02:00
parent 347afa4ac5
commit e0f32f8fc7

@ -1,9 +1,9 @@
### 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 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 patch is a modified version of [vanitygaps][vanitygaps] that adds gaps around clients regardless of a layout.
It means you can apply any layout patch and the gaps will be shown properly as long as the layout does not add any gaps on its own.
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.
This works by allowing a layout to place clients normally without gaps,
and then correcting positions and dimensions of clients afterwards to add gaps around them.
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.
@ -12,7 +12,7 @@ and, as a side effect, this change fixed some flickering I experienced when usin
### Download
- [2023-05-20](https://github.com/djpohly/dwl/compare/main...NikitaIvanovV:genericgaps.patch) generic gaps
- [2023-05-20](https://github.com/djpohly/dwl/compare/main...NikitaIvanovV:genericgaps-rule.patch) generic gaps + monitor rule to enable gaps on certail monitors by default
- [2023-05-20](https://github.com/djpohly/dwl/compare/main...NikitaIvanovV:genericgaps-rule.patch) generic gaps + monitor rule to enable gaps on certain monitors by default
### Authors
- [Nikita Ivanov](https://github.com/NikitaIvanovV)