Commit 74b4619d authored by Javad Rahmatzadeh's avatar Javad Rahmatzadeh
Browse files

remove gesture api for GNOME Shell 40 and higher

Fixes #115
parent 0d3e695a
......@@ -15,6 +15,10 @@ We go to the next version after each release on [GNOME Shell Extensions website]
- Prefs window size for scaled displays.
- Prefs window size for small displays in GNOME Shell 42.
### Removed
- Gesture API for GNOME Shell 40 and higher.
## [20.0.0 Hayez] - 2022-04-01
### Fixed
......
......@@ -668,6 +668,10 @@ var API = class
*/
gestureEnable()
{
if (this._shellVersion >= 40) {
return;
}
global.stage.get_actions().forEach(a => {
a.enabled = true;
});
......@@ -680,6 +684,10 @@ var API = class
*/
gestureDisable()
{
if (this._shellVersion >= 40) {
return;
}
global.stage.get_actions().forEach(a => {
a.enabled = false;
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment