diff options
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/container.c b/sway/container.c index 2f656bd8..d43ee35e 100644 --- a/sway/container.c +++ b/sway/container.c @@ -1,3 +1,4 @@ +#define _XOPEN_SOURCE 500 #include <ctype.h> #include <stdlib.h> #include <stdbool.h> @@ -18,7 +19,6 @@ #define ASSERT_NONNULL(PTR) \ sway_assert (PTR, #PTR "must be non-null") - static swayc_t *new_swayc(enum swayc_types type) { // next id starts at 1 because 0 is assigned to root_container in layout.c static size_t next_id = 1; @@ -401,9 +401,9 @@ void floating_view_sane_size(swayc_t *view) { config->floating_maximum_height = swayc_active_workspace()->height; } else if (config->floating_maximum_height != -1 && - view->desired_height > config->floating_maximum_height) { - view->desired_height = config->floating_maximum_height; - } + view->desired_height > config->floating_maximum_height) { + view->desired_height = config->floating_maximum_height; + } // if 0 do not resize, only enforce max value if (config->floating_maximum_width == 0) { |