mirror of
https://github.com/hyprwm/aquamarine.git
synced 2025-12-20 04:40:12 +01:00
drm: restore hdr metadata after vt switch (#163)
This commit is contained in:
parent
484b732195
commit
1d2dbd72c2
1 changed files with 9 additions and 7 deletions
|
|
@ -378,16 +378,18 @@ void Aquamarine::CDRMBackend::restoreAfterVT() {
|
||||||
if (!c->crtc || !c->output)
|
if (!c->crtc || !c->output)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
auto& STATE = c->output->state->state();
|
||||||
|
|
||||||
SDRMConnectorCommitData data = {
|
SDRMConnectorCommitData data = {
|
||||||
.mainFB = nullptr,
|
.mainFB = nullptr,
|
||||||
.modeset = true,
|
.modeset = true,
|
||||||
.blocking = true,
|
.blocking = true,
|
||||||
.flags = 0,
|
.flags = 0,
|
||||||
.test = false,
|
.test = false,
|
||||||
|
.hdrMetadata = STATE.hdrMetadata,
|
||||||
};
|
};
|
||||||
|
|
||||||
auto& STATE = c->output->state->state();
|
auto& MODE = STATE.customMode ? STATE.customMode : STATE.mode;
|
||||||
auto& MODE = STATE.customMode ? STATE.customMode : STATE.mode;
|
|
||||||
|
|
||||||
if (!MODE) {
|
if (!MODE) {
|
||||||
backend->log(AQ_LOG_WARNING, "drm: Connector {} has output but state has no mode, will send a reset state event later.");
|
backend->log(AQ_LOG_WARNING, "drm: Connector {} has output but state has no mode, will send a reset state event later.");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue