Skip to content

Commit

Permalink
chore: upgrade Komorebi client to v0.1.26 (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
CtByte authored Jun 20, 2024
1 parent a8c8836 commit 7bb4737
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ yarn-error.log*

# Turbo
.turbo
/.vs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export type KomorebiLayout =
| 'ultrawide_vertical_stack'
| 'rows'
| 'grid'
| 'right_main_vertical_stack'
| 'custom';

export type KomorebiLayoutFlip =
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ netdev = "0.24"
regex = "1"

[target.'cfg(all(target_os = "windows", target_arch = "x86_64"))'.dependencies]
komorebi-client = { git = "https://github.com/LGUG2Z/komorebi", tag = "v0.1.23" }
komorebi-client = { git = "https://github.com/LGUG2Z/komorebi", tag = "v0.1.26" }

[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.25"
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/src/providers/komorebi/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl KomorebiProvider {
KomorebiMonitor {
id: monitor.id(),
name: monitor.name().to_string(),
device_id: monitor.device_id().clone(),
device_id: Some(monitor.device_id().clone()),
focused_workspace_index: monitor.focused_workspace_idx(),
size: *monitor.size(),
work_area_size: *monitor.work_area_size(),
Expand Down
2 changes: 2 additions & 0 deletions packages/desktop/src/providers/komorebi/variables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ pub enum KomorebiLayout {
UltrawideVerticalStack,
Rows,
Grid,
RightMainVerticalStack,
Custom,
}

Expand All @@ -78,6 +79,7 @@ impl From<Layout> for KomorebiLayout {
KomorebiLayout::UltrawideVerticalStack
}
DefaultLayout::Grid => KomorebiLayout::Grid,
DefaultLayout::RightMainVerticalStack => KomorebiLayout::RightMainVerticalStack,
},
_ => KomorebiLayout::Custom,
}
Expand Down

0 comments on commit 7bb4737

Please sign in to comment.