From 8f19c8b508aa8b3215379847748c3ddc9ec52759 Mon Sep 17 00:00:00 2001 From: Palanix Date: Thu, 24 Mar 2022 23:09:46 +0100 Subject: [PATCH] Consolidate into a single if statement --- dwl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dwl.c b/dwl.c index ae2a3d8..e6240ae 100644 --- a/dwl.c +++ b/dwl.c @@ -1689,9 +1689,7 @@ rendermon(struct wl_listener *listener, void *data) skip = 1; } } - if (skip) - return; - if (!skip && !wlr_scene_output_commit(m->scene_output)) + if (skip || !wlr_scene_output_commit(m->scene_output)) return; /* Let clients know a frame has been rendered */ wlr_scene_output_send_frame_done(m->scene_output, &now);