Skip to content

Commit

Permalink
updated to new hyprland-rs release
Browse files Browse the repository at this point in the history
  • Loading branch information
H3rmt committed Feb 3, 2024
1 parent 80d197b commit 9016c1b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ categories = ["command-line-utilities"]

[dependencies]
clap = { version = "^4.4.18", features = ["derive"] }
hyprland = "0.3.12"
hyprland = "0.3.13"

[dev-dependencies]
random_color = "0.8.0"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ pub struct WorkspaceData {
pub y: u16,
}

pub type MonitorId = i64;
pub type MonitorId = i128;
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let active = binding
.as_ref()
.unwrap_or(clients.first().expect("no active window and no windows"));
let active_address = active.address.to_string();
let active_address = active.address.clone();
let active_class = active.class.clone();
let active_workspace_id = active.workspace.id;

Expand All @@ -203,7 +203,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

let mut current_window_index = clients
.iter()
.position(|r| r.address.to_string() == active_address)
.position(|r| r.address == active_address)
.expect("Active window not found?");

if cli.reverse {
Expand Down

0 comments on commit 9016c1b

Please sign in to comment.