From 0ad7857f909278fde8603b995d59b86437d5247f Mon Sep 17 00:00:00 2001 From: Denis Doria Date: Wed, 1 Jun 2016 13:37:50 +0200 Subject: Included option floating_minimum_size Values cannot be negative or 0; if so uses the default 75x50. Uses the same syntax as i3: floating_minimum_size x , although the x can be anything. --- include/config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/config.h') diff --git a/include/config.h b/include/config.h index 1a6ba19d..9e59cb66 100644 --- a/include/config.h +++ b/include/config.h @@ -227,11 +227,12 @@ struct sway_config { uint32_t background; } border_colors; - // floating view minimum + // floating view int32_t floating_maximum_width; int32_t floating_maximum_height; int32_t floating_minimum_width; int32_t floating_minimum_height; + char *floating_minimum_size; }; /** -- cgit v1.2.3-70-g09d2 From 009eaccd421cf0640cdebc3bac96d67c599ff616 Mon Sep 17 00:00:00 2001 From: Denis Doria Date: Wed, 1 Jun 2016 14:44:02 +0200 Subject: Clean up not used variables --- include/config.h | 1 - sway/config.c | 2 -- 2 files changed, 3 deletions(-) (limited to 'include/config.h') diff --git a/include/config.h b/include/config.h index 9e59cb66..d591daf2 100644 --- a/include/config.h +++ b/include/config.h @@ -232,7 +232,6 @@ struct sway_config { int32_t floating_maximum_height; int32_t floating_minimum_width; int32_t floating_minimum_height; - char *floating_minimum_size; }; /** diff --git a/sway/config.c b/sway/config.c index b4e740f6..95285eba 100644 --- a/sway/config.c +++ b/sway/config.c @@ -178,8 +178,6 @@ static void config_defaults(struct sway_config *config) { config->floating_minimum_width = 75; config->floating_minimum_height = 50; - config->floating_minimum_size = strdup(""); - // Flags config->focus_follows_mouse = true; config->mouse_warping = true; -- cgit v1.2.3-70-g09d2