diff options
author | Simon Ser <contact@emersion.fr> | 2023-06-27 15:53:02 +0200 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-06-27 16:26:30 +0000 |
commit | 6c53f7badff80e886d190768b0399023b7bf0f5f (patch) | |
tree | 5e97877ed977ce48b75579b679a4a72f1f407b81 /backend/headless | |
parent | bfe8138210f9c32bac2174cf4bb2c78a9a01db86 (diff) |
backend/headless: only schedule a new frame if buffer was submitted
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.
Diffstat (limited to 'backend/headless')
-rw-r--r-- | backend/headless/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |