mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-17 06:11:21 +01:00
fix(wm): make hidden windows take up less space
This commit is contained in:
1 parent
f6997577f1
commit
84d27f83e0
4 files changed
+6
-14
No files matched your search
@@ -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;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -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
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user