diff options
Diffstat (limited to 'gnome-extra/gnome-shell-extension-alphabetical-grid/files/gnome-shell-extension-alphabetical-grid-22.0-redisplay.patch')
-rw-r--r-- | gnome-extra/gnome-shell-extension-alphabetical-grid/files/gnome-shell-extension-alphabetical-grid-22.0-redisplay.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnome-extra/gnome-shell-extension-alphabetical-grid/files/gnome-shell-extension-alphabetical-grid-22.0-redisplay.patch b/gnome-extra/gnome-shell-extension-alphabetical-grid/files/gnome-shell-extension-alphabetical-grid-22.0-redisplay.patch new file mode 100644 index 000000000000..7010a11735ef --- /dev/null +++ b/gnome-extra/gnome-shell-extension-alphabetical-grid/files/gnome-shell-extension-alphabetical-grid-22.0-redisplay.patch @@ -0,0 +1,31 @@ +From ae8d9c55ede615c244729e1dd0bd20de3f09e386 Mon Sep 17 00:00:00 2001 +From: stuarthayhurst <stuart.a.hayhurst@gmail.com> +Date: Fri, 8 Apr 2022 16:06:10 +0100 +Subject: [PATCH] Call original _redisplay() once to setup, respect internal + pages updating lock + +--- + extension/extension.js | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/extension/extension.js b/extension/extension.js +index 2c8cc71..7f6b4db 100644 +--- a/extension/extension.js ++++ b/extension/extension.js +@@ -23,6 +23,7 @@ function enable() { + ExtensionHelper.loggingEnabled = Me.metadata.debug || gridReorder.extensionSettings.get_boolean('logging-enabled'); + + //Patch shell, reorder and trigger listeners ++ AppDisplay._redisplay(); + gridReorder.patchShell(); + gridReorder.startListeners(); + gridReorder.reorderGrid('Reordering app grid'); +@@ -93,7 +94,7 @@ class Extension { + + reorderGrid(logMessage) { + //Detect lock to avoid multiple changes at once +- if (!this._currentlyUpdating) { ++ if (!this._currentlyUpdating && !AppDisplay._pageManager._updatingPages) { + this._currentlyUpdating = true; + ExtensionHelper.logMessage(logMessage); + |