修复窗口打开黑影

This commit is contained in:
DreamMaoMao 2025-02-17 18:13:52 +08:00
parent c68ac07863
commit 196c5d1078

View file

@ -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);