aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorLibravatar Kenny Levinsen <kl@kl.wtf>2024-04-23 13:26:14 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2024-04-23 13:31:30 +0200
commit646019cad9e8a075911e960fc7645471d9c26bf6 (patch)
tree9fad481b845631e5662fd999fbc1ac6f34c4d54e /sway/desktop/output.c
parentserver: Use wlr_renderer_get_texture_formats (diff)
downloadsway-646019cad9e8a075911e960fc7645471d9c26bf6.tar.gz
sway-646019cad9e8a075911e960fc7645471d9c26bf6.tar.zst
sway-646019cad9e8a075911e960fc7645471d9c26bf6.zip
desktop/output: Fix check if config should be stored
We want to check if a config_head existed for the current matched_output_config, so we should check cfg->output. sway_output is a temporary variable from a previous wl_list_for_each, and does not contain anything useful to us. Fixes: https://github.com/swaywm/sway/issues/8128
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index bd3de3fe..70987feb 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -619,7 +619,7 @@ static void output_manager_apply(struct sway_server *server,
619 if (!test_only && ok) { 619 if (!test_only && ok) {
620 struct wlr_output_configuration_head_v1 *config_head; 620 struct wlr_output_configuration_head_v1 *config_head;
621 wl_list_for_each(config_head, &config->heads, link) { 621 wl_list_for_each(config_head, &config->heads, link) {
622 if (config_head->state.output == sway_output->wlr_output) { 622 if (config_head->state.output == cfg->output->wlr_output) {
623 store_config = true; 623 store_config = true;
624 break; 624 break;
625 } 625 }