summaryrefslogtreecommitdiff
path: root/gnome-extra/gnome-shell-extension-alphabetical-grid/files/gnome-shell-extension-alphabetical-grid-22.0-redisplay.patch
blob: 7010a11735efcff5f3ce88b6357c37e8a248e40e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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);