commit c7c0a5a1b36a5ac93baacdf0098e121817d0d642 parent a1838c5522e4c386245f17823d247dc76ad91d71 Author: mtvare6 <mtvare6@proton.me> Date: Wed, 8 Jan 2025 09:40:09 +0530 config/output: skip format checks if all are supported Fixes #8496 Diffstat:
| M | sway/config/output.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sway/config/output.c b/sway/config/output.c @@ -783,7 +783,8 @@ static bool search_render_format(struct search_context *ctx, size_t output_idx) if (needed_bits < format_bits) { continue; } - if (!wlr_drm_format_set_get(primary_formats, fmts[idx])) { + // If primary_formats is NULL, all formats are supported + if (primary_formats && !wlr_drm_format_set_get(primary_formats, fmts[idx])) { // This is not a supported format for this output continue; }