aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index b4564fac..1e4f196b 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -304,15 +304,14 @@ struct send_frame_done_data {
304 304
305static void send_frame_done_container_iterator(struct sway_container *con, 305static void send_frame_done_container_iterator(struct sway_container *con,
306 void *_data) { 306 void *_data) {
307 struct send_frame_done_data *data = _data; 307 if (con->type != C_VIEW) {
308 if (!sway_assert(con->type == C_VIEW, "expected a view")) {
309 return; 308 return;
310 } 309 }
311
312 if (!view_is_visible(con->sway_view)) { 310 if (!view_is_visible(con->sway_view)) {
313 return; 311 return;
314 } 312 }
315 313
314 struct send_frame_done_data *data = _data;
316 output_view_for_each_surface(data->output, con->sway_view, 315 output_view_for_each_surface(data->output, con->sway_view,
317 send_frame_done_iterator, data->when); 316 send_frame_done_iterator, data->when);
318} 317}
@@ -323,8 +322,8 @@ static void send_frame_done_container(struct sway_output *output,
323 .output = output, 322 .output = output,
324 .when = when, 323 .when = when,
325 }; 324 };
326 container_descendants(con, C_VIEW, 325 output_for_each_container(output->swayc,
327 send_frame_done_container_iterator, &data); 326 send_frame_done_container_iterator, &data);
328} 327}
329 328
330static void send_frame_done(struct sway_output *output, struct timespec *when) { 329static void send_frame_done(struct sway_output *output, struct timespec *when) {