Compare commits

..

2 Commits

Author SHA1 Message Date
b6282d82c6 Set minimum screen brightness level to 1, not 0 2024-10-06 22:25:40 -07:00
4ed974335e Update all dependencies 2024-10-06 22:25:40 -07:00
2 changed files with 0 additions and 4 deletions

View File

@ -119,7 +119,6 @@ fn main() -> anyhow::Result<()> {
} }
let conn_fd = borrow_raw_fd(conn_fd); let conn_fd = borrow_raw_fd(conn_fd);
let mut pfds = Vec::new(); let mut pfds = Vec::new();
pfds.push(PollFd::new(borrow_raw_fd(signal_fd.as_raw_fd()), PollFlags::POLLIN)); pfds.push(PollFd::new(borrow_raw_fd(signal_fd.as_raw_fd()), PollFlags::POLLIN));
pfds.push(PollFd::new(conn_fd.as_fd(), PollFlags::POLLIN)); pfds.push(PollFd::new(conn_fd.as_fd(), PollFlags::POLLIN));

View File

@ -92,8 +92,5 @@ async fn do_bscreensaver_command(command: BCommand) -> anyhow::Result<()> {
async fn register_sleep_lock<'a>(manager_proxy: &ManagerProxy<'a>) -> anyhow::Result<zbus::zvariant::OwnedFd> { async fn register_sleep_lock<'a>(manager_proxy: &ManagerProxy<'a>) -> anyhow::Result<zbus::zvariant::OwnedFd> {
debug!("Registering sleep lock"); debug!("Registering sleep lock");
// ManagerProxy uses RawFd for the return value, which rust's type system thinks is an i32,
// which means the generated proxy uses the wrong dbus type signature. So instead, use a raw
// Proxy instance and do it all ourselves.
Ok(manager_proxy.inhibit(InhibitType::Sleep, "bscreensaver", "blank before sleep", "delay").await?) Ok(manager_proxy.inhibit(InhibitType::Sleep, "bscreensaver", "blank before sleep", "delay").await?)
} }