diff --git a/activate_gnome@isjerryxiao/extension.js b/activate_gnome@isjerryxiao/extension.js index 37969cf..755f6f4 100644 --- a/activate_gnome@isjerryxiao/extension.js +++ b/activate_gnome@isjerryxiao/extension.js @@ -41,8 +41,8 @@ class Extension { for (let monitor of Main.layoutManager.monitors) { let label_1 = new St.Label({style_class: 'label-1', text: text1, opacity}) let label_2 = new St.Label({style_class: 'label-2', text: text2, opacity}) - Main.layoutManager.addTopChrome(label_2, {"trackFullscreen": false}) - Main.layoutManager.addTopChrome(label_1, {"trackFullscreen": false}) + Main.layoutManager.uiGroup.add_actor(label_2, {"trackFullscreen": false}) + Main.layoutManager.uiGroup.add_actor(label_1, {"trackFullscreen": false}) this.labels.push(label_1) this.labels.push(label_2) let h = Math.max(0, Math.floor(monitor.height * vl2 - label_2.height)) @@ -54,7 +54,7 @@ class Extension { cleanup() { for (let label of this.labels) { - Main.layoutManager.removeChrome(label) + Main.layoutManager.uiGroup.remove_actor(label) label.destroy() } this.labels = []