aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 942bc780..a5184484 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -289,8 +289,14 @@ static void send_frame_done_iterator(struct wlr_scene_buffer *buffer,
}
struct wlr_scene_node *current = &buffer->node;
-
while (true) {
+ struct sway_view *view = scene_descriptor_try_get(current,
+ SWAY_SCENE_DESC_VIEW);
+ if (view) {
+ view_max_render_time = view->max_render_time;
+ break;
+ }
+
if (!current->parent) {
break;
}