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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
Author: Aleksey Smirnov <debugger94@gmail.com>
Subject: Port to GNOME 48
Origin: https://github.com/aunetx/blur-my-shell/pull/706
---
--- a/metadata.json
+++ b/metadata.json
@@ -2,8 +2,7 @@
"description": "Adds a blur look to different parts of the GNOME Shell, including the top panel, dash and overview.\n\nYou can support my work by sponsoring me on:\n- github: https://github.com/sponsors/aunetx\n- ko-fi: https://ko-fi.com/aunetx\n\nIf you use Ubuntu, you may want to change the radius of the corner effect for Dash-to-Dock in preferences, else you may see unpleasantly mixed radii in your dock.\n\nNote: if the extension shows an error after updating, please make sure to restart your session to see if it persists. This is due to a bug in gnome shell, which I can't fix by myself.",
"name": "Blur my Shell",
"shell-version": [
- "46",
- "47"
+ "48"
],
"url": "https://github.com/aunetx/blur-my-shell",
"uuid": "blur-my-shell@aunetx",
@@ -21,4 +20,4 @@
"kofi": "aunetx"
},
"version": 67
-}
\ No newline at end of file
+}
--- a/src/extension.js
+++ b/src/extension.js
@@ -1,4 +1,3 @@
-import Meta from 'gi://Meta';
import Clutter from 'gi://Clutter';
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
@@ -253,14 +252,14 @@
/// Add the Clutter debug flag.
_disable_clipped_redraws() {
- Meta.add_clutter_debug_flags(
+ Clutter.add_debug_flags(
null, Clutter.DrawDebugFlag.DISABLE_CLIPPED_REDRAWS, null
);
}
/// Remove the Clutter debug flag.
_reenable_clipped_redraws() {
- Meta.remove_clutter_debug_flags(
+ Clutter.remove_debug_flags(
null, Clutter.DrawDebugFlag.DISABLE_CLIPPED_REDRAWS, null
);
}
|