From 6c53f7badff80e886d190768b0399023b7bf0f5f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 27 Jun 2023 15:53:02 +0200 Subject: backend/headless: only schedule a new frame if buffer was submitted MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A no-op commit should not schedule a new frame. This aligns the headless backend with the rest of the backends. This will be important to handle the enabled → disabled transition. --- backend/headless/output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/headless') diff --git a/backend/headless/output.c b/backend/headless/output.c index a233bf6b..0a183600 100644 --- a/backend/headless/output.c +++ b/backend/headless/output.c @@ -76,9 +76,9 @@ static bool output_commit(struct wlr_output *wlr_output, .presented = true, }; wlr_output_send_present(wlr_output, &present_event); - } - wl_event_source_timer_update(output->frame_timer, output->frame_delay); + wl_event_source_timer_update(output->frame_timer, output->frame_delay); + } return true; } -- cgit v1.2.3