mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 00:15:59 +01:00
drm: reconfigure swapchain props after creating
This commit is contained in:
parent
1e43d9a719
commit
b474796cdb
1 changed files with 2 additions and 0 deletions
|
@ -1281,6 +1281,8 @@ void Aquamarine::SDRMConnector::connect(drmModeConnector* connector) {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
output->swapchain = CSwapchain::create(backend->backend->primaryAllocator, backend->self.lock());
|
output->swapchain = CSwapchain::create(backend->backend->primaryAllocator, backend->self.lock());
|
||||||
|
output->swapchain->reconfigure(SSwapchainOptions{.length = 0, .scanout = true, .multigpu = !!backend->primary}); // mark the swapchain for scanout
|
||||||
|
output->needsFrame = true;
|
||||||
backend->backend->events.newOutput.emit(SP<IOutput>(output));
|
backend->backend->events.newOutput.emit(SP<IOutput>(output));
|
||||||
output->scheduleFrame(IOutput::AQ_SCHEDULE_NEW_CONNECTOR);
|
output->scheduleFrame(IOutput::AQ_SCHEDULE_NEW_CONNECTOR);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue