summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDr0med4r <[email protected]>2025-01-29 13:51:57 +0100
committerDr0med4r <[email protected]>2025-01-29 13:51:57 +0100
commit9e08e69daf438e58fc48a6f4eb7069d2d96975dd (patch)
treec28dd4564522d2b9dee8f9af5e5e05dc7a1ef779 /lib
parentcb1578a7917339a9df9fa87773a739a0249501e2 (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/hyprland/hyprland.vala2
1 files changed, 2 insertions, 0 deletions
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":