From 196c5d10785f950e585ba7f37e84c7ed806bacd5 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 17 Feb 2025 18:13:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AA=97=E5=8F=A3=E6=89=93?= =?UTF-8?q?=E5=BC=80=E9=BB=91=E5=BD=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maomao.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/maomao.c b/maomao.c index 97ca49e9..adacfe91 100644 --- a/maomao.c +++ b/maomao.c @@ -3641,6 +3641,14 @@ rendermon(struct wl_listener *listener, void *data) { struct timespec now; bool need_more_frames = false; + wl_list_for_each(c, &clients, link) { + need_more_frames = client_draw_frame(c); + } + + if (need_more_frames) { + wlr_output_schedule_frame(m->wlr_output); + } + /* Render if no XDG clients have an outstanding resize and are visible on * this monitor. */ wl_list_for_each(c, &clients, link) { @@ -3679,14 +3687,6 @@ rendermon(struct wl_listener *listener, void *data) { skip: - wl_list_for_each(c, &clients, link) { - need_more_frames = client_draw_frame(c); - } - - if (need_more_frames) { - wlr_output_schedule_frame(m->wlr_output); - } - struct wlr_scene_output *scene_output = wlr_scene_get_scene_output(scene, m->wlr_output); wlr_scene_output_commit(scene_output, NULL);