From ceff381747e185cd254c4f1529ef9f5939081c87 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Sat, 1 Oct 2022 20:38:06 -0400 Subject: [PATCH] wlr_scene: Ignore disabled outputs --- types/scene/wlr_scene.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index 3f662ceb..872e0ed7 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -313,6 +313,10 @@ static void update_node_update_outputs(struct wlr_scene_node *node, continue; } + if (!scene_output->output->enabled) { + continue; + } + struct wlr_box output_box = { .x = scene_output->x, .y = scene_output->y, @@ -1154,7 +1158,8 @@ static void scene_output_handle_commit(struct wl_listener *listener, void *data) if (event->committed & (WLR_OUTPUT_STATE_MODE | WLR_OUTPUT_STATE_TRANSFORM | - WLR_OUTPUT_STATE_SCALE)) { + WLR_OUTPUT_STATE_SCALE | + WLR_OUTPUT_STATE_ENABLED)) { scene_output_update_geometry(scene_output); } }