summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <[email protected]>2022-10-01 20:38:06 -0400
committerKirill Primak <[email protected]>2022-10-10 08:09:55 +0000
commitd1d9c3f3d1393265337fbd87d5b6b44e839def37 (patch)
tree6d69f2768aa3d8f468ea9c8057fcbfc1ee6e9d6b
parentb16a406077498a832d39e0d0df052f9eebf12624 (diff)
wlr_scene: Ignore disabled outputs
-rw-r--r--wlr_scene.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/wlr_scene.c b/wlr_scene.c
index 3f662ce..872e0ed 100644
--- a/wlr_scene.c
+++ b/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);
}
}