mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-12-23 02:19:50 +01:00
drm: don't schedule new frame events on disabled outputs
This commit is contained in:
parent
cd152140fd
commit
5a45587300
1 changed files with 1 additions and 1 deletions
|
@ -818,7 +818,7 @@ static void handlePF(int fd, unsigned seq, unsigned tv_sec, unsigned tv_usec, un
|
||||||
.flags = flags,
|
.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();
|
pageFlip->connector->output->events.frame.emit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue