dynamic padding - add explicit dependency on the ANYSIZE_PATCH ref. #168

This commit is contained in:
Bakkeby 2025-03-04 10:12:43 +01:00 committed by Antoine Vaure
parent 5d5fe76795
commit 0aad70af58
2 changed files with 2 additions and 5 deletions

View file

@ -160,6 +160,8 @@
* effect when the size hints are intentionally ignored.
* An example of this would be dwm respecting the size hints of floating windows, but disrespecting
* the size hints when the window is tiled (provided that resizehints config is set to 0).
*
* Note that this patch depends on ANYSIZE_PATCH being enabled to have an effect.
*/
#define DYNAMIC_PADDING_PATCH 0

5
st.h
View file

@ -11,11 +11,6 @@
#include <X11/XKBlib.h>
#include "patches.h"
#if DYNAMIC_PADDING_PATCH
#undef ANYSIZE_PATCH
#define ANYSIZE_PATCH 1
#endif // DYNAMIC_PADDING_PATCH
/* macros */
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) < (b) ? (b) : (a))