e6414d8afc
Re-apply rebased and updated version of the RHEL 9 downstream patches, with some exceptions: Branding is still TBD, so has been left out for now. The desktop-icons extension will be replaced by an upstreamed version of desktop-icons-ng, which is still work-in-progress. Both dash-to-dock and dash-to-panel will be moved to separate packages, based on the existing Fedora package. It was decided to drop the panel-favorites and updates-dialog extensions. Resolves: RHEL-34255
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From 14ab607a7695297efe98b97ab023973055189cee Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
|
|
Date: Wed, 21 Feb 2024 18:59:23 +0100
|
|
Subject: [PATCH 09/28] workspace-indicator: Use existing property
|
|
|
|
We already track the current workspace index, use that
|
|
instead of getting it from the workspace manager again.
|
|
|
|
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/307>
|
|
---
|
|
extensions/workspace-indicator/workspaceIndicator.js | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/extensions/workspace-indicator/workspaceIndicator.js b/extensions/workspace-indicator/workspaceIndicator.js
|
|
index fe54b95c..26c9d7ee 100644
|
|
--- a/extensions/workspace-indicator/workspaceIndicator.js
|
|
+++ b/extensions/workspace-indicator/workspaceIndicator.js
|
|
@@ -439,7 +439,7 @@ export class WorkspaceIndicator extends PanelMenu.Button {
|
|
return;
|
|
|
|
|
|
- let newIndex = global.workspace_manager.get_active_workspace_index() + diff;
|
|
+ const newIndex = this._currentWorkspace + diff;
|
|
this._activate(newIndex);
|
|
}
|
|
}
|
|
--
|
|
2.44.0
|
|
|