mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 04:56:00 +01:00
drm: use modelines in vt restore
This commit is contained in:
parent
71d49670fe
commit
2d29c86d69
1 changed files with 4 additions and 3 deletions
|
@ -302,15 +302,16 @@ void Aquamarine::CDRMBackend::restoreAfterVT() {
|
||||||
};
|
};
|
||||||
|
|
||||||
auto& STATE = c->output->state->state();
|
auto& STATE = c->output->state->state();
|
||||||
|
auto& MODE = STATE.customMode ? STATE.customMode : STATE.mode;
|
||||||
|
|
||||||
if (!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.");
|
backend->log(AQ_LOG_WARNING, "drm: Connector {} has output but state has no mode, will send a reset state event later.");
|
||||||
noMode.emplace_back(c);
|
noMode.emplace_back(c);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (STATE.mode && STATE.mode->modeInfo.has_value())
|
if (MODE->modeInfo.has_value())
|
||||||
data.modeInfo = *STATE.mode->modeInfo;
|
data.modeInfo = *MODE->modeInfo;
|
||||||
else
|
else
|
||||||
data.calculateMode(c);
|
data.calculateMode(c);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue