summaryrefslogtreecommitdiff
path: root/0001-gesture-inhibitor-Allow-inhibiting-workspace-switch-.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-02 07:11:28 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-02 07:11:28 +0000
commitcb5b236cef314782bf6ca4dc8a3262611ce0343a (patch)
tree240469bdbd54d5f13e1752bdf40a5f69d6db6f10 /0001-gesture-inhibitor-Allow-inhibiting-workspace-switch-.patch
parentc81a9a47a086cc5686180dc0801728fa1d7269e7 (diff)
automatic import of gnome-shell-extensionsopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to '0001-gesture-inhibitor-Allow-inhibiting-workspace-switch-.patch')
-rw-r--r--0001-gesture-inhibitor-Allow-inhibiting-workspace-switch-.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/0001-gesture-inhibitor-Allow-inhibiting-workspace-switch-.patch b/0001-gesture-inhibitor-Allow-inhibiting-workspace-switch-.patch
new file mode 100644
index 0000000..ad0bbd8
--- /dev/null
+++ b/0001-gesture-inhibitor-Allow-inhibiting-workspace-switch-.patch
@@ -0,0 +1,40 @@
+From c70a1fa37f68687b8c0a013d2328e6262f8419d0 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
+Date: Fri, 9 Dec 2022 15:31:08 +0100
+Subject: [PATCH] gesture-inhibitor: Allow inhibiting workspace switch gesture
+
+---
+ extensions/gesture-inhibitor/extension.js | 1 +
+ .../org.gnome.shell.extensions.gesture-inhibitor.gschema.xml | 4 ++++
+ 2 files changed, 5 insertions(+)
+
+diff --git a/extensions/gesture-inhibitor/extension.js b/extensions/gesture-inhibitor/extension.js
+index fb8a6dc0..d103d5b8 100644
+--- a/extensions/gesture-inhibitor/extension.js
++++ b/extensions/gesture-inhibitor/extension.js
+@@ -48,6 +48,7 @@ class Extension {
+ { setting: 'app-switch', action: this._appSwitch },
+ { setting: 'show-osk', action: this._showOsk },
+ { setting: 'unfullscreen', action: this._unfullscreen },
++ { setting: 'workspace-switch', action: Main.wm._workspaceAnimation._swipeTracker },
+ ];
+
+ this._enabledDesc = Object.getOwnPropertyDescriptor(
+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
+index 4bdf9260..b06d027a 100644
+--- a/extensions/gesture-inhibitor/org.gnome.shell.extensions.gesture-inhibitor.gschema.xml
++++ b/extensions/gesture-inhibitor/org.gnome.shell.extensions.gesture-inhibitor.gschema.xml
+@@ -12,6 +12,10 @@
+ <default>true</default>
+ <summary>Application switch gesture</summary>
+ </key>
++ <key name="workspace-switch" type="b">
++ <default>true</default>
++ <summary>Workspace switch gesture</summary>
++ </key>
+ <key name="unfullscreen" type="b">
+ <default>true</default>
+ <summary>Unfullscreen gesture</summary>
+--
+2.38.1
+