Skip to content

Commit 21564ff

Browse files
committed
gwl: Make sure to scroll to the focused app group on workspace switched
1 parent 4bb4ad2 commit 21564ff

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

files/usr/share/cinnamon/applets/[email protected]/workspace.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ class Workspace {
1515
this.state.connect({
1616
orientation: (state) => {
1717
this.on_orientation_changed(state.orientation);
18+
},
19+
currentWs: (state) => {
20+
if (this.metaWorkspace && state.currentWs === this.metaWorkspace.index()) {
21+
this.scrollToFocusedApp();
22+
}
1823
}
1924
});
2025
this.workspaceState = createStore({

0 commit comments

Comments
 (0)