mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-25 21:58:31 +01:00
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>
This commit is contained in:
parent
796898519b
commit
fd3b643d15
1 changed files with 1 additions and 1 deletions
|
@ -448,7 +448,7 @@ static void queue_output_config(struct output_config *oc,
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (wlr_output->transform != tr) {
|
if (wlr_output->transform != tr) {
|
||||||
sway_log(SWAY_DEBUG, "Set %s transform to %d", oc->name, tr);
|
sway_log(SWAY_DEBUG, "Set %s transform to %d", wlr_output->name, tr);
|
||||||
wlr_output_state_set_transform(pending, tr);
|
wlr_output_state_set_transform(pending, tr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue