aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2024-11-11 12:48:50 +0100
committerSimon Ser <contact@emersion.fr>2024-11-28 20:40:09 +0100
commit14ac15f0c90aa9102613333bc9847449ffd98de4 (patch)
tree9c8993aa293b44681727d74314051ce43580bd22
parent597c55cba44e009c5b1eb12693bd9a83d555aba8 (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. (cherry picked from commit fdc4318ac66d257d21e8f3b953e341d5e80a1ddc)
-rw-r--r--sway/desktop/output.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 47c84d9d..254c3fee 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 = {