Consolidate into a single if statement

This commit is contained in:
Palanix 2022-03-24 23:09:46 +01:00
parent c7d8324337
commit 8f19c8b508

4
dwl.c
View File

@ -1689,9 +1689,7 @@ rendermon(struct wl_listener *listener, void *data)
skip = 1; skip = 1;
} }
} }
if (skip) if (skip || !wlr_scene_output_commit(m->scene_output))
return;
if (!skip && !wlr_scene_output_commit(m->scene_output))
return; return;
/* Let clients know a frame has been rendered */ /* Let clients know a frame has been rendered */
wlr_scene_output_send_frame_done(m->scene_output, &now); wlr_scene_output_send_frame_done(m->scene_output, &now);