fix(wm): make hidden windows take up less space

This commit is contained in:
LGUG2Z committed 2025-09-22 14:26:21 -07:00
1 parent f6997577f1
commit 84d27f83e0
4 files changed
+6 -14

No files matched your search

+3 -13
View File
@@ -42,17 +42,7 @@
// {
inherit version;
pname = "komorebi";
cargoExtraArgs = "-p komorebi";
src = ./.;
}
);
komorebic = craneLib.buildPackage (
commonArgs
// {
inherit version;
pname = "komorebic";
cargoExtraArgs = "-p komorebic";
cargoExtraArgs = "-p komorebi -p komorebic";
src = ./.;
}
);
@@ -62,9 +52,9 @@
};
packages = flake-utils.lib.flattenTree rec {
inherit komorebi komorebic;
inherit komorebi;
default = komorebi;
};
}
);
}
}
+1
View File
@@ -6,6 +6,7 @@ fmt:
test -z "$(rg 'println!' --type rust ./komorebi)" || (echo "println! macro not allowed"; false)
cargo +nightly fmt
cargo +stable clippy
alejandra .
prettier --write README.md
fix:
+1 -1
View File
@@ -195,7 +195,7 @@ pub enum LibraryError {
pub fn hidden_frame_bottom_left(screen_frame: CGRect, window_size: CGSize) -> CGRect {
let visible_sliver: f64 = 1.0;
let origin_x = screen_frame.origin.x - (window_size.width - visible_sliver);
let origin_y = screen_frame.origin.y - (window_size.height - visible_sliver);
let origin_y = screen_frame.origin.y + screen_frame.size.height - visible_sliver;
CGRect::new(CGPoint::new(origin_x, origin_y), window_size)
}
+1
View File
@@ -11,5 +11,6 @@ with pkgs;
jq
prettier
cargo-udeps
alejandra
];
}