drm: don't schedule new frame events on disabled outputs

This commit is contained in:
Vaxry 2024-08-18 10:19:16 +02:00
parent cd152140fd
commit 5a45587300

View file

@ -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();
}