From 5f4eaa031d8399590268b22e084e239ff2c4d9a7 Mon Sep 17 00:00:00 2001 From: mpuchstein Date: Thu, 6 Mar 2025 21:46:09 +0100 Subject: [PATCH] added a sort to workspaces so they are in the correct order --- hyprman/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/hyprman/src/main.rs b/hyprman/src/main.rs index 07ef679..54aee67 100644 --- a/hyprman/src/main.rs +++ b/hyprman/src/main.rs @@ -835,6 +835,7 @@ fn run_workspaces_client(config: &Config) { } } let mut workspaces_tmp = workspaces.clone(); + workspaces_tmp.sort_by(|a, b| a.id.cmp(&b.id)); let mut workspace = workspaces_tmp .iter_mut() .find(|w| w.id == active_id)