diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2020-02-13 12:54:48 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2020-02-13 12:54:48 +0100 |
| commit | 7ae98cfece0822cd93f85f8b99ee0d3f66d9bce1 (patch) | |
| tree | c232528b41409e04e3585aeb4efa6bccfff07eb1 | |
| parent | 7b62d647ebeec505a1b9bd2d93916047ccf32195 (diff) | |
Fix crash: use wlr_output->name instead of possibly missing oc->name
Fixes segfault on start:
https://gist.github.com/yorickvP/89eccb3782c6edb22aeda6ce9c6d4fcb
| -rw-r--r-- | sway/config/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index 26d40f3e..de566869 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -383,7 +383,7 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) { sway_log(SWAY_DEBUG, "Auto-detected output scale: %f", scale); } if (scale != wlr_output->scale) { - sway_log(SWAY_DEBUG, "Set %s scale to %f", oc->name, scale); + sway_log(SWAY_DEBUG, "Set %s scale to %f", wlr_output->name, scale); wlr_output_set_scale(wlr_output, scale); } |
