make pipewire default on wlroots

This commit is contained in:
galister
2024-08-24 02:21:43 +09:00
parent c6bc880bc3
commit 4f38d1ad44

View File

@@ -613,9 +613,7 @@ pub fn create_screen_renderer_wl(
session: &AppSession,
) -> Option<ScreenRenderer> {
let mut capture: Option<ScreenRenderer> = None;
if (&*session.config.capture_method == "auto" || &*session.config.capture_method == "dmabuf")
&& has_wlr_dmabuf
{
if (&*session.config.capture_method == "wlr-dmabuf") && has_wlr_dmabuf {
log::info!("{}: Using Wlr DMA-Buf", &output.name);
capture = ScreenRenderer::new_wlr_dmabuf(output);
}