Compare commits

..

No commits in common. "main" and "0.1.0rc1" have entirely different histories.

3 changed files with 2 additions and 28 deletions

View File

@ -1,13 +0,0 @@
name: Nix Build
on: [push]
jobs:
all-in-one:
runs-on: [native]
name: nix build + cache push
steps:
- uses: actions/checkout@v4
- run: nix build --out-link ./unstable .#packages.x86_64-linux.unstable
- run: attic login ci http://127.0.0.1:8009 $ATTICKEY
- run: attic push ci ./unstable

View File

@ -47,16 +47,6 @@ async fn create_provider_socket(name: &'static str, socket: &'static str) -> Res
let mut sock_path = get_run_path()?;
sock_path.push(format!("{}.sock", socket));
if smol::fs::metadata(&sock_path).await.is_ok() {
for entry in smol::fs::read_to_string("/proc/net/unix").await?.lines() {
if entry.contains(socket) {
tracing::error!(
"Another instance is already using the {} socket {}!",
name,
socket
);
return Err(anyhow!("Socket in use"));
}
}
tracing::debug!("removing old {} socket", name);
smol::fs::remove_file(&sock_path).await?;
}

View File

@ -220,11 +220,8 @@ impl NiriTag {
}
TagExclusive(t) => {
tracing::debug!("Changing all tags");
let (active_wid, inactive_wid): (HashMap<u64, u8>, HashMap<u64, u8>) = self
.windows
.iter()
.filter(|(_, it)| **it != 0)
.partition(|(_, it)| **it == t);
let (active_wid, inactive_wid): (HashMap<u64, u8>, HashMap<u64, u8>) =
self.windows.iter().partition(|(_, it)| **it == t);
let focus = active_wid.keys().last();
self.move_windows(&inactive, inactive_wid.keys().cloned().collect())
.await;