|
|
77f9b1 |
From c70a1fa37f68687b8c0a013d2328e6262f8419d0 Mon Sep 17 00:00:00 2001
|
|
|
77f9b1 |
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
|
|
|
77f9b1 |
Date: Fri, 9 Dec 2022 15:31:08 +0100
|
|
|
77f9b1 |
Subject: [PATCH] gesture-inhibitor: Allow inhibiting workspace switch gesture
|
|
|
77f9b1 |
|
|
|
77f9b1 |
---
|
|
|
77f9b1 |
extensions/gesture-inhibitor/extension.js | 1 +
|
|
|
77f9b1 |
.../org.gnome.shell.extensions.gesture-inhibitor.gschema.xml | 4 ++++
|
|
|
77f9b1 |
2 files changed, 5 insertions(+)
|
|
|
77f9b1 |
|
|
|
77f9b1 |
diff --git a/extensions/gesture-inhibitor/extension.js b/extensions/gesture-inhibitor/extension.js
|
|
|
77f9b1 |
index fb8a6dc0..d103d5b8 100644
|
|
|
77f9b1 |
--- a/extensions/gesture-inhibitor/extension.js
|
|
|
77f9b1 |
+++ b/extensions/gesture-inhibitor/extension.js
|
|
|
77f9b1 |
@@ -48,6 +48,7 @@ class Extension {
|
|
|
77f9b1 |
{ setting: 'app-switch', action: this._appSwitch },
|
|
|
77f9b1 |
{ setting: 'show-osk', action: this._showOsk },
|
|
|
77f9b1 |
{ setting: 'unfullscreen', action: this._unfullscreen },
|
|
|
77f9b1 |
+ { setting: 'workspace-switch', action: Main.wm._workspaceAnimation._swipeTracker },
|
|
|
77f9b1 |
];
|
|
|
77f9b1 |
|
|
|
77f9b1 |
this._enabledDesc = Object.getOwnPropertyDescriptor(
|
|
|
77f9b1 |
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
|
|
|
77f9b1 |
index 4bdf9260..b06d027a 100644
|
|
|
77f9b1 |
--- a/extensions/gesture-inhibitor/org.gnome.shell.extensions.gesture-inhibitor.gschema.xml
|
|
|
77f9b1 |
+++ b/extensions/gesture-inhibitor/org.gnome.shell.extensions.gesture-inhibitor.gschema.xml
|
|
|
77f9b1 |
@@ -12,6 +12,10 @@
|
|
|
77f9b1 |
<default>true</default>
|
|
|
77f9b1 |
<summary>Application switch gesture</summary>
|
|
|
77f9b1 |
</key>
|
|
|
77f9b1 |
+ <key name="workspace-switch" type="b">
|
|
|
77f9b1 |
+ <default>true</default>
|
|
|
77f9b1 |
+ <summary>Workspace switch gesture</summary>
|
|
|
77f9b1 |
+ </key>
|
|
|
77f9b1 |
<key name="unfullscreen" type="b">
|
|
|
77f9b1 |
<default>true</default>
|
|
|
77f9b1 |
<summary>Unfullscreen gesture</summary>
|
|
|
77f9b1 |
--
|
|
|
77f9b1 |
2.38.1
|
|
|
77f9b1 |
|