Blame SOURCES/0001-gesture-inhibitor-Allow-inhibiting-workspace-switch-.patch

66b32e
From ce75829479b1e7bf99e74bf835174e91c8da2276 Mon Sep 17 00:00:00 2001
66b32e
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
66b32e
Date: Fri, 9 Dec 2022 15:31:08 +0100
66b32e
Subject: [PATCH] gesture-inhibitor: Allow inhibiting workspace switch gesture
66b32e
66b32e
---
66b32e
 extensions/gesture-inhibitor/extension.js                    | 5 ++++-
66b32e
 .../org.gnome.shell.extensions.gesture-inhibitor.gschema.xml | 4 ++++
66b32e
 2 files changed, 8 insertions(+), 1 deletion(-)
66b32e
66b32e
diff --git a/extensions/gesture-inhibitor/extension.js b/extensions/gesture-inhibitor/extension.js
66b32e
index e74ede2f..bf02d075 100644
66b32e
--- a/extensions/gesture-inhibitor/extension.js
66b32e
+++ b/extensions/gesture-inhibitor/extension.js
66b32e
@@ -37,6 +37,8 @@ class Extension {
66b32e
 		this._showOverview = a;
66b32e
 	    else if (a instanceof WindowManager.AppSwitchAction)
66b32e
 		this._appSwitch = a;
66b32e
+	    else if (a instanceof WindowManager.WorkspaceSwitchAction)
66b32e
+		this._workspaceSwitch = a;
66b32e
 	    else if (a instanceof EdgeDragAction.EdgeDragAction &&
66b32e
 		     a._side == St.Side.BOTTOM)
66b32e
 		this._showOsk = a;
66b32e
@@ -52,7 +54,8 @@ class Extension {
66b32e
 	    { setting: 'app-switch', action: this._appSwitch },
66b32e
 	    { setting: 'show-osk', action: this._showOsk },
66b32e
 	    { setting: 'unfullscreen', action: this._unfullscreen },
66b32e
-	    { setting: 'show-app-grid', action: this._showAppGrid }
66b32e
+	    { setting: 'show-app-grid', action: this._showAppGrid },
66b32e
+	    { setting: 'workspace-switch', action: this._workspaceSwitch },
66b32e
 	];
66b32e
     }
66b32e
 
66b32e
diff --git a/extensions/gesture-inhibitor/org.gnome.shell.extensions.gesture-inhibitor.gschema.xml b/extensions/gesture-inhibitor/org.gnome.shell.extensions.gesture-inhibitor.gschema.xml
66b32e
index 1d67dcc0..a5e97a3d 100644
66b32e
--- a/extensions/gesture-inhibitor/org.gnome.shell.extensions.gesture-inhibitor.gschema.xml
66b32e
+++ b/extensions/gesture-inhibitor/org.gnome.shell.extensions.gesture-inhibitor.gschema.xml
66b32e
@@ -16,6 +16,10 @@
66b32e
       <default>true</default>
66b32e
       <summary>Application switch gesture</summary>
66b32e
     </key>
66b32e
+    <key name="workspace-switch" type="b">
66b32e
+      <default>true</default>
66b32e
+      <summary>Workspace switch gesture</summary>
66b32e
+    </key>
66b32e
     <key name="unfullscreen" type="b">
66b32e
       <default>true</default>
66b32e
       <summary>Unfullscreen gesture</summary>
66b32e
-- 
66b32e
2.38.1
66b32e