From 9e08e69daf438e58fc48a6f4eb7069d2d96975dd Mon Sep 17 00:00:00 2001 From: Dr0med4r Date: Wed, 29 Jan 2025 13:51:57 +0100 Subject: fix(hyprland): focused_workspace If moving a workspace to another monitor the newly created workspace has the focus. Also notify the workspaces as a property of a workspace has changed. --- lib/hyprland/hyprland.vala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/hyprland/hyprland.vala b/lib/hyprland/hyprland.vala index 70b5a25..0553d71 100644 --- a/lib/hyprland/hyprland.vala +++ b/lib/hyprland/hyprland.vala @@ -376,6 +376,8 @@ public class Hyprland : Object { case "moveworkspacev2": yield sync_workspaces(); yield sync_monitors(); + focused_workspace = get_workspace(int.parse(args[1])); + notify_property("workspaces"); break; case "renameworkspace": -- cgit v1.2.3