diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2025-02-18 12:39:18 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2025-02-18 12:39:18 -0500 |
| commit | 580e1c18a8169052badf770d4490c7d49daaffb4 (patch) | |
| tree | 551a79017cf89dbd4ae7fb4370d935dd86f6a0a2 | |
| parent | 7633e4f1ad0b9336c661086747013a30d52df25f (diff) | |
output: Allow configuring scene without an output
| -rw-r--r-- | sway/desktop/output.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index d6a18252..e2419317 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -229,7 +229,9 @@ void output_configure_scene(struct sway_output *output, // hack: don't call the scene setter because that will damage all outputs // We don't want to damage outputs that aren't our current output that // we're configuring - buffer->filter_mode = get_scale_filter(output, buffer); + if (output) { + buffer->filter_mode = get_scale_filter(output, buffer); + } wlr_scene_buffer_set_opacity(buffer, opacity); } else if (node->type == WLR_SCENE_NODE_TREE) { |
