Merge pull request #709 from qaqland/clean-rendermon

opt: remove unused variable in function rendermon
This commit is contained in:
DreamMaoMao 2026-02-25 17:23:31 +08:00 committed by GitHub
commit c344dfe7a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4560,7 +4560,6 @@ void monitor_check_skip_frame_timeout(Monitor *m) {
void rendermon(struct wl_listener *listener, void *data) {
Monitor *m = wl_container_of(listener, m, frame);
Client *c = NULL, *tmp = NULL;
struct wlr_output_state pending = {0};
LayerSurface *l = NULL, *tmpl = NULL;
int32_t i;
struct wl_list *layer_list;
@ -4621,7 +4620,6 @@ skip:
wlr_scene_output_send_frame_done(m->scene_output, &now);
} else {
wlr_scene_output_send_frame_done(m->scene_output, &now);
wlr_output_state_finish(&pending);
}
// 如果需要更多帧,确保安排下一帧