1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-01 18:51:04 +02:00

build: update hyprland-rs to 0.4.0-alpha.1

(#565) 

this does have some breaking changes in it so it could have other
side effects.
This commit is contained in:
Nadia 2024-05-03 15:39:09 -05:00 committed by GitHub
parent 78fcd44c1a
commit f7a39ddecc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 58 deletions

View file

@ -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| {
@ -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));