aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c
index b5d442c5..bce074b9 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -284,7 +284,7 @@ bool read_config(FILE *file, bool is_active) {
284} 284}
285 285
286void apply_output_config(struct output_config *oc, swayc_t *output) { 286void apply_output_config(struct output_config *oc, swayc_t *output) {
287 if (oc && oc->width != -1 && oc->height != -1) { 287 if (oc && oc->width > 0 && oc->height > 0) {
288 output->width = oc->width; 288 output->width = oc->width;
289 output->height = oc->height; 289 output->height = oc->height;
290 290