mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 19:31:29 +00:00
Merge pull request #3143 from colemickens/grow
commands/resize: fix grow vars uninitialized
This commit is contained in:
commit
a5cdc293dc
|
@ -511,7 +511,7 @@ static struct cmd_results *resize_set_tiled(struct sway_container *con,
|
||||||
*/
|
*/
|
||||||
static struct cmd_results *resize_set_floating(struct sway_container *con,
|
static struct cmd_results *resize_set_floating(struct sway_container *con,
|
||||||
struct resize_amount *width, struct resize_amount *height) {
|
struct resize_amount *width, struct resize_amount *height) {
|
||||||
int min_width, max_width, min_height, max_height, grow_width, grow_height;
|
int min_width, max_width, min_height, max_height, grow_width = 0, grow_height = 0;
|
||||||
calculate_constraints(&min_width, &max_width, &min_height, &max_height);
|
calculate_constraints(&min_width, &max_width, &min_height, &max_height);
|
||||||
|
|
||||||
if (width->amount) {
|
if (width->amount) {
|
||||||
|
|
Loading…
Reference in a new issue