diff options
author | Ronan Pigott <rpigott@berkeley.edu> | 2019-12-26 21:18:34 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-27 11:38:05 +0100 |
commit | bd42415b5d3254f699a01845a0396e24f0de1a5f (patch) | |
tree | 9cb701ff07988c39ad705e1e1a37ef3a15b775ed /sway/config | |
parent | desktop/surface: Fix crash when timer is NULL (diff) | |
download | sway-bd42415b5d3254f699a01845a0396e24f0de1a5f.tar.gz sway-bd42415b5d3254f699a01845a0396e24f0de1a5f.tar.zst sway-bd42415b5d3254f699a01845a0396e24f0de1a5f.zip |
config/output: apply scale_filter even when scale has not changed
Diffstat (limited to 'sway/config')
-rw-r--r-- | sway/config/output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index 0bb375c1..2a65718a 100644 --- a/sway/config/output.c +++ b/sway/config/output.c | |||
@@ -366,7 +366,9 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) { | |||
366 | if (scale != wlr_output->scale) { | 366 | if (scale != wlr_output->scale) { |
367 | sway_log(SWAY_DEBUG, "Set %s scale to %f", oc->name, scale); | 367 | sway_log(SWAY_DEBUG, "Set %s scale to %f", oc->name, scale); |
368 | wlr_output_set_scale(wlr_output, scale); | 368 | wlr_output_set_scale(wlr_output, scale); |
369 | } | ||
369 | 370 | ||
371 | if (oc) { | ||
370 | enum scale_filter_mode scale_filter_old = output->scale_filter; | 372 | enum scale_filter_mode scale_filter_old = output->scale_filter; |
371 | switch (oc->scale_filter) { | 373 | switch (oc->scale_filter) { |
372 | case SCALE_FILTER_DEFAULT: | 374 | case SCALE_FILTER_DEFAULT: |