mirror of
https://github.com/hyprwm/aquamarine.git
synced 2025-12-20 02:30:02 +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)
|
||||
continue;
|
||||
|
||||
auto& STATE = c->output->state->state();
|
||||
|
||||
SDRMConnectorCommitData data = {
|
||||
.mainFB = nullptr,
|
||||
.modeset = true,
|
||||
.blocking = true,
|
||||
.flags = 0,
|
||||
.test = false,
|
||||
.mainFB = nullptr,
|
||||
.modeset = true,
|
||||
.blocking = true,
|
||||
.flags = 0,
|
||||
.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) {
|
||||
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