Skip to content

Commit 9e45da5

Browse files
committed
WorkspaceRow: Allow focus only within currently active ws
1 parent cef333a commit 9e45da5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Widgets/MultitaskingView/WorkspaceRow.vala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ public class Gala.WorkspaceRow : ActorTarget {
4242
}
4343
}
4444

45+
public override bool move_focus (FocusDirection direction) {
46+
var focusable = (Focusable) get_child_at_index ((int) (-get_current_commit (SWITCH_WORKSPACE)));
47+
return focusable.focus (direction);
48+
}
49+
4550
private void update_order () {
4651
for (var child = get_first_child (); child != null; child = child.get_next_sibling ()) {
4752
unowned var workspace_clone = (WorkspaceClone) child;

0 commit comments

Comments
 (0)