managers: Use primary backend for cursor swapchain (#9645)

This commit is contained in:
Lee Bousfield
2025-03-17 09:51:18 -05:00
committed by GitHub
parent c2835b6b0f
commit efc51eb7d1
3 changed files with 5 additions and 3 deletions

View File

@@ -419,7 +419,9 @@ SP<Aquamarine::IBuffer> CPointerManager::renderHWCursorBuffer(SP<CPointerManager
}
}
state->monitor->cursorSwapchain = Aquamarine::CSwapchain::create(allocator, state->monitor->output->getBackend());
auto backend = state->monitor->output->getBackend();
auto primary = backend->getPrimary();
state->monitor->cursorSwapchain = Aquamarine::CSwapchain::create(allocator, primary ? primary.lock() : backend);
}
auto options = state->monitor->cursorSwapchain->currentOptions();