refactor: move workspace policy into core
This commit is contained in:
1 parent
3e692ba934
commit
28d845ee64
8 files changed
+25
-7
No files matched your search
@@ -0,0 +1,9 @@
|
||||
[package]
|
||||
name = "ferese-core"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
rust-version.workspace = true
|
||||
|
||||
[dependencies]
|
||||
ferese-layout = { path = "../ferese-layout" }
|
||||
@@ -0,0 +1,3 @@
|
||||
mod workspace;
|
||||
|
||||
pub use workspace::{Workspace, WorkspaceError, WorkspaceId, WorkspaceSet};
|
||||
@@ -2,7 +2,7 @@ use std::collections::{HashMap, HashSet};
|
||||
use std::error::Error;
|
||||
use std::fmt;
|
||||
|
||||
use crate::{Axis, LayoutError, LayoutTree, WindowId};
|
||||
use ferese_layout::{Axis, LayoutError, LayoutTree, WindowId};
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
|
||||
pub struct WorkspaceId(pub u64);
|
||||
@@ -2,10 +2,6 @@ use std::collections::{HashMap, HashSet};
|
||||
use std::error::Error;
|
||||
use std::fmt;
|
||||
|
||||
mod workspace;
|
||||
|
||||
pub use workspace::{Workspace, WorkspaceError, WorkspaceId, WorkspaceSet};
|
||||
|
||||
const MIN_SPLIT_RATIO: f64 = 0.05;
|
||||
const MAX_SPLIT_RATIO: f64 = 0.95;
|
||||
|
||||
|
||||
Reference in new issue
Block a user