mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 03:46:00 +01:00
drm: fix crash for connectors without a fallback mode (#20)
This commit is contained in:
parent
5b34d0df1f
commit
dcac376308
1 changed files with 1 additions and 1 deletions
|
@ -1122,7 +1122,7 @@ void Aquamarine::SDRMConnector::connect(drmModeConnector* connector) {
|
|||
aqMode->preferred ? " (preferred)" : ""));
|
||||
}
|
||||
|
||||
if (!currentModeInfo) {
|
||||
if (!currentModeInfo && fallbackMode) {
|
||||
output->state->setMode(fallbackMode);
|
||||
crtc->refresh = calculateRefresh(fallbackMode->modeInfo.value());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue