mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 03:46:00 +01:00
drm: always rescan connectors after rechecking crtcs
This commit is contained in:
parent
05995dd21e
commit
bd6da3bec6
1 changed files with 4 additions and 6 deletions
|
@ -466,7 +466,7 @@ void Aquamarine::CDRMBackend::recheckCRTCs() {
|
|||
}
|
||||
|
||||
recheck.emplace_back(c);
|
||||
backend->log(AQ_LOG_DEBUG, std::format("drm: connector {}, has crtc {}, will be rechecked", c->szName, c->crtc ? c->crtc->id : -1));
|
||||
backend->log(AQ_LOG_DEBUG, std::format("drm: connector {}, has crtc {}, will be rechecked", c->szName, c->crtc ? (int)c->crtc->id : -1));
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < crtcs.size(); ++i) {
|
||||
|
@ -497,7 +497,7 @@ void Aquamarine::CDRMBackend::recheckCRTCs() {
|
|||
c->output->commit();
|
||||
}
|
||||
|
||||
backend->log(AQ_LOG_DEBUG, std::format("drm: slot {} crtc {} assigned to {} (old {})", i, crtcs.at(i)->id, c->szName, c->crtc ? c->crtc->id : -1));
|
||||
backend->log(AQ_LOG_DEBUG, std::format("drm: slot {} crtc {} assigned to {} (old {})", i, crtcs.at(i)->id, c->szName, c->crtc ? (int)c->crtc->id : -1));
|
||||
c->crtc = crtcs.at(i);
|
||||
assigned = true;
|
||||
changed.emplace_back(c);
|
||||
|
@ -522,10 +522,8 @@ void Aquamarine::CDRMBackend::recheckCRTCs() {
|
|||
c->output->events.state.emit(IOutput::SStateEvent{});
|
||||
}
|
||||
|
||||
if (rescan) {
|
||||
backend->log(AQ_LOG_DEBUG, "drm: rescan needed after realloc");
|
||||
backend->log(AQ_LOG_DEBUG, "drm: rescanning after realloc");
|
||||
scanConnectors();
|
||||
}
|
||||
}
|
||||
|
||||
bool Aquamarine::CDRMBackend::grabFormats() {
|
||||
|
|
Loading…
Reference in a new issue