Skip to content

Commit

Permalink
build: update hyprland-rs to 0.4.0-alpha.1
Browse files Browse the repository at this point in the history
(#565) 

this does have some breaking changes in it so it could have other
side effects.
  • Loading branch information
nyadiia authored May 3, 2024
1 parent 78fcd44 commit f7a39dd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 58 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
.direnv/
69 changes: 12 additions & 57 deletions Cargo.lock

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

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ libpulse-binding = { version = "2.28.1", optional = true }

# workspaces
swayipc-async = { version = "2.0.1", optional = true }
hyprland = { version = "0.3.13", default_features = false, features = ["listener", "tokio", "silent"], optional = true }
hyprland = { version = "0.4.0-alpha.1", features = ["silent"], optional = true }
futures-util = { version = "0.3.30", optional = true }
num-traits = "0.2.18"

# shared
futures-lite = { version = "2.3.0", optional = true } # workspaces, upower
Expand Down
2 changes: 2 additions & 0 deletions src/clients/compositor/hyprland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ impl Client {
fn get_workspace(name: &str, active: Option<&Workspace>) -> Option<Workspace> {
Workspaces::get()
.expect("Failed to get workspaces")
.into_iter()
.find_map(|w| {
if w.name == name {
let vis = Visibility::from((&w, active.map(|w| w.name.as_ref()), &|w| {
Expand Down Expand Up @@ -228,6 +229,7 @@ impl WorkspaceClient for Client {

let workspaces = Workspaces::get()
.expect("Failed to get workspaces")
.into_iter()
.map(|w| {
let vis = Visibility::from((&w, active_id.as_deref(), &is_visible));

Expand Down

0 comments on commit f7a39dd

Please sign in to comment.