diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2024-11-11 12:48:50 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2024-11-11 12:48:50 +0100 |
| commit | bfa1dc8e5ad0099e488bccb70f966a03df925d64 (patch) | |
| tree | 0aeb59f2995e13272e714c395af4a76b071f3bf5 | |
| parent | 7cfa25bbba092b03cd874f2bf5917f5fc4c15c34 (diff) | |
desktop/output: Clear frame_pending even output is disabled
frame_pending should always be cleared once the repaint callback is
fired to ensure that future frame scheduling is not accidentally held
back.
| -rw-r--r-- | sway/desktop/output.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 9b98e29a..8682cc65 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -262,12 +262,11 @@ static bool output_can_tear(struct sway_output *output) { static int output_repaint_timer_handler(void *data) { struct sway_output *output = data; + output->wlr_output->frame_pending = false; if (!output->enabled) { return 0; } - output->wlr_output->frame_pending = false; - output_configure_scene(output, &root->root_scene->tree.node, 1.0f); struct wlr_scene_output_state_options opts = { |
