This commit is contained in:
galister
2025-12-18 21:27:09 +09:00
parent a12a181422
commit 3b44535407
2 changed files with 8 additions and 4 deletions

View File

@@ -519,10 +519,14 @@ where
log::debug!("{name}: request pipewire stream to {req:?}");
match req {
PwChangeRequest::Pause => {
let _ = stream.set_active(false).inspect_err(|e| log::warn!("Could not {req:?} pipewire stream: {e:?}"));
let _ = stream
.set_active(false)
.inspect_err(|e| log::warn!("Could not {req:?} pipewire stream: {e:?}"));
}
PwChangeRequest::Resume => {
let _ = stream.set_active(true).inspect_err(|e| log::warn!("Could not {req:?} pipewire stream: {e:?}"));
let _ = stream
.set_active(true)
.inspect_err(|e| log::warn!("Could not {req:?} pipewire stream: {e:?}"));
}
PwChangeRequest::Stop => {
main_loop.quit();

View File

@@ -5,7 +5,7 @@ use std::time::Instant;
use glam::{Affine3A, Vec2, Vec3A, Vec3Swizzles};
use idmap_derive::IntegerId;
use smallvec::{smallvec, SmallVec};
use smallvec::{SmallVec, smallvec};
use wlx_common::common::LeftRight;
use wlx_common::windowing::{OverlayWindowState, Positioning};
@@ -16,7 +16,7 @@ use crate::state::{AppSession, AppState};
use crate::subsystem::hid::WheelDelta;
use crate::subsystem::input::KeyboardFocus;
use crate::windowing::manager::OverlayWindowManager;
use crate::windowing::window::{self, realign, OverlayWindowData};
use crate::windowing::window::{self, OverlayWindowData, realign};
use crate::windowing::{OverlayID, OverlaySelector};
use super::task::TaskType;