aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Anna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-05-18 16:13:08 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2024-05-18 16:25:42 +0200
commitfd3b643d15618fe608c8ed0fed0956d1e2526574 (patch)
treea09bc97b34719506f65cea13aad7849df9b7832a
parentbuild: disable wayland-protocols subproject tests by default (diff)
downloadsway-fd3b643d15618fe608c8ed0fed0956d1e2526574.tar.gz
sway-fd3b643d15618fe608c8ed0fed0956d1e2526574.tar.zst
sway-fd3b643d15618fe608c8ed0fed0956d1e2526574.zip
sway/config/output.c: fix null deref on output config
If there's no config for the output, oc is null, but some screens might have a default rotation, causing the log call to dereference a null pointer. Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
-rw-r--r--sway/config/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index fb1956df..e7299459 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -448,7 +448,7 @@ static void queue_output_config(struct output_config *oc,
448#endif 448#endif
449 } 449 }
450 if (wlr_output->transform != tr) { 450 if (wlr_output->transform != tr) {
451 sway_log(SWAY_DEBUG, "Set %s transform to %d", oc->name, tr); 451 sway_log(SWAY_DEBUG, "Set %s transform to %d", wlr_output->name, tr);
452 wlr_output_state_set_transform(pending, tr); 452 wlr_output_state_set_transform(pending, tr);
453 } 453 }
454 454