Skip to content

Commit

Permalink
desktop/output: Clear frame_pending even output is disabled
Browse files Browse the repository at this point in the history
frame_pending should always be cleared once the repaint callback is
fired to ensure that future frame scheduling is not accidentally held
back.
  • Loading branch information
kennylevinsen authored and emersion committed Nov 11, 2024
1 parent 463c4c9 commit fdc4318
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sway/desktop/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit fdc4318

Please sign in to comment.