Skip to content

Commit

Permalink
drm: don't schedule new frame events on disabled outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Aug 18, 2024
1 parent cd15214 commit 5a45587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ static void handlePF(int fd, unsigned seq, unsigned tv_sec, unsigned tv_usec, un
.flags = flags,
});

if (BACKEND->sessionActive() && !pageFlip->connector->frameEventScheduled)
if (BACKEND->sessionActive() && !pageFlip->connector->frameEventScheduled && pageFlip->connector->output->state->state().enabled)
pageFlip->connector->output->events.frame.emit();
}

Expand Down

0 comments on commit 5a45587

Please sign in to comment.