sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 447967ad3a68b5a515581e4db76fb232cf56caa3
parent 7999845357bacac9c7599c899c0d6e88dac0791e
Author: Yorick van Pelt <yorick@yorickvanpelt.nl>
Date:   Thu, 13 Feb 2020 12:54:48 +0100

Fix crash: use wlr_output->name instead of possibly missing oc->name

Fixes segfault on start:
https://gist.github.com/yorickvP/89eccb3782c6edb22aeda6ce9c6d4fcb

Diffstat:
Msway/config/output.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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); }