mirror of
https://github.com/swaywm/sway.git
synced 2026-04-28 06:46:26 -04:00
Limit inner gaps to sensible values
Large inner gaps can lead to broken rendering with width/height going negative. Limit the gaps so that they never make the windows smaller than a minimum sensible size (the same used for the resize command). Fixes #4294
This commit is contained in:
parent
5c0396b3f1
commit
b589767e9c
6 changed files with 33 additions and 16 deletions
|
|
@ -34,4 +34,9 @@ const char *sway_wl_output_subpixel_to_string(enum wl_output_subpixel subpixel);
|
|||
|
||||
bool set_cloexec(int fd, bool cloexec);
|
||||
|
||||
#undef MAX
|
||||
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
||||
#undef MIN
|
||||
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue